Changes in src/SynTree/CommaExpr.cc [849720f:b4f8808]
- File:
-
- 1 edited
-
src/SynTree/CommaExpr.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/CommaExpr.cc
r849720f rb4f8808 23 23 CommaExpr::CommaExpr( Expression *arg1, Expression *arg2 ) 24 24 : Expression(), arg1( arg1 ), arg2( arg2 ) { 25 // xxx - result of a comma expression is never an lvalue, so should set lvalue26 // to false on all result types. Actually doing this causes some strange things27 // to happen in later passes (particularly, Specialize, Lvalue, and Box). This needs to be looked into.28 25 set_result( maybeClone( arg2->get_result() ) ); 29 // get_type->set_isLvalue( false );30 26 } 31 27 … … 41 37 bool CommaExpr::get_lvalue() const { 42 38 // This is wrong by C, but the current implementation uses it. 39 // (ex: Specialize, Lvalue and Box) 43 40 return arg2->get_lvalue(); 44 41 }
Note:
See TracChangeset
for help on using the changeset viewer.