Changes in src/SynTree/CommaExpr.cc [b4f8808:bf4b4cf]
- File:
-
- 1 edited
-
src/SynTree/CommaExpr.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/CommaExpr.cc
rb4f8808 rbf4b4cf 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Mon Arg 12 16:11:00201613 // Update Count : 211 // Last Modified By : Rob Schluntz 12 // Last Modified On : Mon May 02 15:19:44 2016 13 // Update Count : 1 14 14 // 15 15 … … 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 lvalue 26 // to false on all result types. Actually doing this causes some strange things 27 // to happen in later passes (particularly, Specialize, Lvalue, and Box). This needs to be looked into. 25 28 set_result( maybeClone( arg2->get_result() ) ); 29 // get_type->set_isLvalue( false ); 26 30 } 27 31 … … 33 37 delete arg1; 34 38 delete arg2; 35 }36 37 bool CommaExpr::get_lvalue() const {38 // This is wrong by C, but the current implementation uses it.39 // (ex: Specialize, Lvalue and Box)40 return arg2->get_lvalue();41 39 } 42 40
Note:
See TracChangeset
for help on using the changeset viewer.