Changeset 567bb17 for src/GenPoly
- Timestamp:
- Jan 21, 2016, 4:51:51 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:
- 4ef7506
- Parents:
- 421edab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r421edab r567bb17 1317 1317 if ( decl == baseDecls.end() ) return memberExpr; 1318 1318 1319 // replace member expression with dereference of pointer offset 1319 // replace member expression with pointer to base plus offset 1320 // this is in a polymorphic context, so maybe keeping it as a void* is fine? 1320 1321 std::stringstream offset_namer; 1321 1322 offset_namer << i; … … 1327 1328 fieldLoc->get_args().push_back( memberExpr->get_aggregate() ); 1328 1329 fieldLoc->get_args().push_back( fieldOffset ); 1329 UntypedExpr *ret = new UntypedExpr( new NameExpr( "*?" ) );1330 ret->get_args().push_back( fieldLoc );1331 1330 1332 1331 memberExpr->set_aggregate( 0 ); 1333 1332 delete memberExpr; 1334 return ret;1333 return fieldLoc; 1335 1334 } 1336 1335
Note: See TracChangeset
for help on using the changeset viewer.