Changes in src/AST/Expr.cpp [5cc53b2:eae8b37]
- File:
-
- 1 edited
-
src/AST/Expr.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
r5cc53b2 reae8b37 122 122 123 123 bool VariableExpr::get_lvalue() const { 124 // Special case for enumeration labels (more literals than variables):124 // It isn't always an lvalue, but it is never an rvalue. 125 125 if(dynamic_cast<const ast::EnumInstType *>(var->get_type())) return !var->isMember; 126 // The remaining uses are either actual variables (lvalues) or function127 // names which are a special value catagory that can be treated as128 // lvalues in the places we are worried about.129 126 return true; 130 127 }
Note:
See TracChangeset
for help on using the changeset viewer.