Changeset 2ae171d8 for src/GenPoly
- Timestamp:
- Aug 27, 2017, 11:23:31 AM (7 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:
- 0c6596f
- Parents:
- e4719f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
re4719f0 r2ae171d8 756 756 Type * newType = arg->get_result()->clone(); 757 757 if ( env ) env->apply( newType ); 758 std:: auto_ptr<Type> manager( newType );758 std::unique_ptr<Type> manager( newType ); 759 759 if ( isPolyType( newType ) ) { 760 760 // if the argument's type is polymorphic, we don't need to box again! … … 774 774 newObj->get_type()->get_qualifiers() = Type::Qualifiers(); // TODO: is this right??? 775 775 stmtsToAdd.push_back( new DeclStmt( noLabels, newObj ) ); 776 UntypedExpr *assign = new UntypedExpr( new NameExpr( "?=?" ) ); 776 UntypedExpr *assign = new UntypedExpr( new NameExpr( "?=?" ) ); // TODO: why doesn't this just use initialization syntax? 777 777 assign->get_args().push_back( new VariableExpr( newObj ) ); 778 778 assign->get_args().push_back( arg );
Note: See TracChangeset
for help on using the changeset viewer.