Changeset bd85400 for src/GenPoly
- Timestamp:
- Feb 5, 2016, 5:09:04 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:
- 52f85e0, 6ed1d4b, d41280e, d63eeb0
- Parents:
- 4789f44
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r4789f44 rbd85400 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 : Fri Feb 05 12:23:10201613 // Update Count : 28 011 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Feb 5 16:45:07 2016 13 // Update Count : 286 14 14 // 15 15 … … 549 549 arg = new AddressExpr( arg ); 550 550 } else { 551 ObjectDecl *newObj = new ObjectDecl( tempNamer.newName(), DeclarationNode::NoStorageClass, LinkageSpec::C, 0, arg->get_results().front()->clone(), 0 ); 551 // use type computed in unification to declare boxed variables 552 Type * newType = param->clone(); 553 if ( env ) env->apply( newType ); 554 ObjectDecl *newObj = new ObjectDecl( tempNamer.newName(), DeclarationNode::NoStorageClass, LinkageSpec::C, 0, newType, 0 ); 552 555 newObj->get_type()->get_qualifiers() = Type::Qualifiers(); // TODO: is this right??? 553 556 stmtsToAdd.push_back( new DeclStmt( noLabels, newObj ) );
Note: See TracChangeset
for help on using the changeset viewer.