Changeset b4f8808 for src/GenPoly
- Timestamp:
- Sep 26, 2019, 1:25:49 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 70b4ea20, ea2074e
- Parents:
- 849720f
- Location:
- src/GenPoly
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r849720f rb4f8808 837 837 deref->args.push_back( new CastExpr( new VariableExpr( param ), new PointerType( Type::Qualifiers(), arg->get_type()->clone() ) ) ); 838 838 deref->result = arg->get_type()->clone(); 839 deref->result->set_lvalue( true );840 839 return deref; 841 840 } // if -
src/GenPoly/Lvalue.cc
r849720f rb4f8808 54 54 delete ret->result; 55 55 ret->result = base->clone(); 56 ret->result->set_lvalue( true );57 56 return ret; 58 57 } else { … … 167 166 ReferenceType * result = strict_dynamic_cast< ReferenceType * >( appExpr->result ); 168 167 appExpr->result = result->base->clone(); 169 appExpr->result->set_lvalue( true );170 168 if ( ! inIntrinsic ) { 171 169 // when not in an intrinsic function, add a cast to … … 436 434 delete ret->result; 437 435 ret->result = castExpr->result; 438 ret->result->set_lvalue( true); // ensure result is lvalue436 assert( ret->get_lvalue() ); // ensure result is lvalue 439 437 castExpr->env = nullptr; 440 438 castExpr->arg = nullptr;
Note: See TracChangeset
for help on using the changeset viewer.