Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    r627f585 r31f379c  
    3838#include "SynTree/AddStmtVisitor.h"
    3939#include "CodeGen/GenType.h"  // for warning/error messages
    40 #include "Tuples/Tuples.h"
    4140
    4241bool ctordtorp = false; // print all debug
     
    347346
    348347                        if ( VariableExpr * function = dynamic_cast< VariableExpr * > ( appExpr->get_function() ) ) {
    349                                 if ( LinkageSpec::isBuiltin( function->get_var()->get_linkage() ) ) {
     348                                if ( function->get_var()->get_linkage() == LinkageSpec::Intrinsic ) {
    350349                                        // optimization: don't need to copy construct in order to call intrinsic functions
    351350                                        return appExpr;
     
    393392
    394393                bool ResolveCopyCtors::skipCopyConstruct( Type * type ) {
    395                         return dynamic_cast< VarArgsType * >( type ) || GenPoly::getFunctionType( type ) || Tuples::isTtype( type );
     394                        return dynamic_cast< VarArgsType * >( type ) || GenPoly::getFunctionType( type );
    396395                }
    397396
     
    11001099                        addDeclaration( tmp );
    11011100
    1102                         // xxx - this can be TupleAssignExpr now. Need to properly handle this case.
    11031101                        ApplicationExpr * callExpr = safe_dynamic_cast< ApplicationExpr * > ( ctorExpr->get_callExpr() );
    11041102                        TypeSubstitution * env = ctorExpr->get_env();
Note: See TracChangeset for help on using the changeset viewer.