- Timestamp:
- Jan 17, 2025, 3:46:40 PM (3 days ago)
- Branches:
- master
- Parents:
- d96f7c4 (diff), 4ac0949 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
rd96f7c4 rdf56e25 122 122 123 123 bool VariableExpr::get_lvalue() const { 124 // It isn't always an lvalue, but it is never an rvalue.124 // Special case for enumeration labels (more literals than variables): 125 125 if(dynamic_cast<const ast::EnumInstType *>(var->get_type())) return !var->isMember; 126 // The remaining uses are either actual variables (lvalues) or function 127 // names which are a special value catagory that can be treated as 128 // lvalues in the places we are worried about. 126 129 return true; 127 130 }
Note: See TracChangeset
for help on using the changeset viewer.