Changeset 09a1ae6 for src/InitTweak
- Timestamp:
- Apr 12, 2018, 11:57:51 AM (6 years ago)
- Branches:
- new-env, with_gc
- Children:
- f229fc2
- Parents:
- 34dcc474
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 ) ) {
Note: See TracChangeset
for help on using the changeset viewer.