Changeset 09a1ae6
- Timestamp:
- Apr 12, 2018, 11:57:51 AM (7 years ago)
- Branches:
- new-env, with_gc
- Children:
- f229fc2
- Parents:
- 34dcc474
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.impl.h
r34dcc474 r09a1ae6 1171 1171 indexerScopedAccept( node->result, *this ); 1172 1172 1173 // xxx - not quite sure why this doesn't visit( node->function ); 1173 1174 for ( auto expr : node->args ) { 1174 1175 visitExpression( expr ); -
src/InitTweak/InitTweak.cc
r34dcc474 r09a1ae6 5 5 #include <memory> // for __shared_ptr 6 6 7 #include "Common/GC.h" // for new_static_root 7 8 #include "Common/PassVisitor.h" 8 9 #include "Common/SemanticError.h" // for SemanticError … … 523 524 // This operator could easily exist as a real function, but it's tricky because nothing should resolve to this function. 524 525 TypeDecl * td = new TypeDecl( "T", noStorageClasses, nullptr, TypeDecl::Dtype, true ); 525 assign = new FunctionDecl( "?=?", noStorageClasses, LinkageSpec::Intrinsic, SymTab::genAssignType( new TypeInstType( noQualifiers, td->name, td ) ), nullptr ); 526 assign = new_static_root<FunctionDecl>( 527 "?=?", noStorageClasses, LinkageSpec::Intrinsic, 528 SymTab::genAssignType( new TypeInstType( noQualifiers, td->name, td ) ), nullptr ); 526 529 } 527 530 if ( dynamic_cast< ReferenceType * >( dst->result ) ) { -
src/ResolvExpr/AlternativeFinder.cc
r34dcc474 r09a1ae6 35 35 #include "ResolveTypeof.h" // for resolveTypeof 36 36 #include "Resolver.h" // for resolveStmtExpr 37 #include "Common/GC.h" // for new_static_root 37 38 #include "SymTab/Indexer.h" // for Indexer 38 39 #include "SymTab/Mangler.h" // for Mangler … … 1084 1085 1085 1086 // find function operators 1086 static NameExpr *opExpr = new NameExpr( "?()" );1087 static auto *opExpr = new_static_root<NameExpr>( "?()" ); 1087 1088 AlternativeFinder funcOpFinder( indexer, env ); 1088 1089 // it's ok if there aren't any defined function ops
Note: See TracChangeset
for help on using the changeset viewer.