Changes in src/SynTree/CommaExpr.cc [60089f4:843054c2]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/CommaExpr.cc
r60089f4 r843054c2 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // CommaExpr.cc -- 7 // CommaExpr.cc -- 8 8 // 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Mon May 02 15:11:29 201611 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 18 08:09:58 2015 13 13 // Update Count : 1 14 14 // … … 16 16 #include "Expression.h" 17 17 #include "Type.h" 18 #include " Common/utility.h"18 #include "utility.h" 19 19 20 20 CommaExpr::CommaExpr( Expression *arg1, Expression *arg2, Expression *_aname ) 21 21 : Expression( _aname ), arg1( arg1 ), arg2( arg2 ) { 22 // xxx - result of a comma expression is never an lvalue, so should set lvalue23 // to false on all result types. Actually doing this causes some strange things24 // to happen in later passes (particularly, Specialize, Lvalue, and Box). This needs to be looked into.25 22 cloneAll( arg2->get_results(), get_results() ); 26 // for ( Type *& type : get_results() ) {27 // type->set_isLvalue( false );28 // }29 23 } 30 24 … … 39 33 40 34 void CommaExpr::print( std::ostream &os, int indent ) const { 41 os << "Comma Expression:" << std::endl; 42 os << std::string( indent+2, ' ' ); 35 os << std::string( indent, ' ' ) << "Comma Expression:" << std::endl; 43 36 arg1->print( os, indent+2 ); 44 37 os << std::endl; 45 os << std::string( indent+2, ' ' );46 38 arg2->print( os, indent+2 ); 47 39 Expression::print( os, indent );
Note:
See TracChangeset
for help on using the changeset viewer.