Changeset 615a096 for src/GenPoly
- Timestamp:
- Mar 17, 2017, 9:58:23 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 409433da, 946bcca
- Parents:
- 395fc37
- Location:
- src/GenPoly
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r395fc37 r615a096 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 16 08:35:33201713 // Update Count : 33 812 // Last Modified On : Fri Mar 17 09:06:37 2017 13 // Update Count : 339 14 14 // 15 15 … … 753 753 // if the argument's type is polymorphic, we don't need to box again! 754 754 return; 755 } else if ( arg->get_result()->get_ isLvalue() ) {755 } else if ( arg->get_result()->get_lvalue() ) { 756 756 // VariableExpr and MemberExpr are lvalues; need to check this isn't coming from the second arg of a comma expression though (not an lvalue) 757 757 // xxx - need to test that this code is still reachable -
src/GenPoly/Lvalue.cc
r395fc37 r615a096 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Dec 15 15:33:13 201513 // Update Count : 312 // Last Modified On : Fri Mar 17 09:11:18 2017 13 // Update Count : 5 14 14 // 15 15 … … 79 79 if ( function->get_returnVals().empty() ) return 0; 80 80 Type *ty = function->get_returnVals().front()->get_type(); 81 return ty->get_ isLvalue() ? ty : 0;81 return ty->get_lvalue() ? ty : 0; 82 82 } 83 83 … … 134 134 Statement * Pass1::mutate(ReturnStmt *retStmt) { 135 135 if ( retval && retStmt->get_expr() ) { 136 if ( retStmt->get_expr()->get_result()->get_ isLvalue() ) {136 if ( retStmt->get_expr()->get_result()->get_lvalue() ) { 137 137 // ***** Code Removal ***** because casts may be stripped already 138 138
Note: See TracChangeset
for help on using the changeset viewer.