Changeset 5f6c42c for src/GenPoly/Lvalue.cc
- Timestamp:
- Dec 15, 2015, 5:33:25 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 35304009, 8360977
- Parents:
- ffad73a (diff), 4389966 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Lvalue.cc
rffad73a r5f6c42c 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue May 19 07:41:33 201513 // Update Count : 112 // Last Modified On : Tue Dec 15 15:33:13 2015 13 // Update Count : 3 14 14 // 15 15 … … 122 122 if ( retval && retStmt->get_expr() ) { 123 123 assert( ! retStmt->get_expr()->get_results().empty() ); 124 while ( CastExpr *castExpr = dynamic_cast< CastExpr* >( retStmt->get_expr() ) ) {125 retStmt->set_expr( castExpr->get_arg() );126 retStmt->get_expr()->set_env( castExpr->get_env() );127 castExpr->set_env( 0 );128 castExpr->set_arg( 0 );129 delete castExpr;130 } // while131 124 if ( retStmt->get_expr()->get_results().front()->get_isLvalue() ) { 125 // ***** Code Removal ***** because casts may be stripped already 126 127 // strip casts because not allowed to take address of cast 128 // while ( CastExpr *castExpr = dynamic_cast< CastExpr* >( retStmt->get_expr() ) ) { 129 // retStmt->set_expr( castExpr->get_arg() ); 130 // retStmt->get_expr()->set_env( castExpr->get_env() ); 131 // castExpr->set_env( 0 ); 132 // castExpr->set_arg( 0 ); 133 // delete castExpr; 134 // } // while 132 135 retStmt->set_expr( new AddressExpr( retStmt->get_expr()->acceptMutator( *this ) ) ); 133 136 } else {
Note: See TracChangeset
for help on using the changeset viewer.