Changeset 2ae171d8
- 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
- Location:
- src
- Files:
-
- 3 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 ); -
src/SymTab/Indexer.cc
re4719f0 r2ae171d8 345 345 leaveScope(); 346 346 347 debugPrint( "Adding context " << aggregateDecl->get_name() << std::endl );347 debugPrint( "Adding trait " << aggregateDecl->get_name() << std::endl ); 348 348 addTrait( aggregateDecl ); 349 349 } -
src/SymTab/Validate.cc
re4719f0 r2ae171d8 467 467 return; 468 468 } 469 470 // handle other traits 469 471 TraitDecl *traitDecl = indexer->lookupTrait( traitInst->get_name() ); 470 472 if ( ! traitDecl ) {
Note: See TracChangeset
for help on using the changeset viewer.