Ignore:
Timestamp:
Apr 12, 2018, 11:57:51 AM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
f229fc2
Parents:
34dcc474
Message:

Fix some missing static roots -- GC'd CFA-CC now builds prelude

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cc

    r34dcc474 r09a1ae6  
    55#include <memory>                  // for __shared_ptr
    66
     7#include "Common/GC.h"             // for new_static_root
    78#include "Common/PassVisitor.h"
    89#include "Common/SemanticError.h"  // for SemanticError
     
    523524                        // This operator could easily exist as a real function, but it's tricky because nothing should resolve to this function.
    524525                        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 );
    526529                }
    527530                if ( dynamic_cast< ReferenceType * >( dst->result ) ) {
Note: See TracChangeset for help on using the changeset viewer.