Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    r31f379c r627f585  
    3838#include "SynTree/AddStmtVisitor.h"
    3939#include "CodeGen/GenType.h"  // for warning/error messages
     40#include "Tuples/Tuples.h"
    4041
    4142bool ctordtorp = false; // print all debug
     
    346347
    347348                        if ( VariableExpr * function = dynamic_cast< VariableExpr * > ( appExpr->get_function() ) ) {
    348                                 if ( function->get_var()->get_linkage() == LinkageSpec::Intrinsic ) {
     349                                if ( LinkageSpec::isBuiltin( function->get_var()->get_linkage() ) ) {
    349350                                        // optimization: don't need to copy construct in order to call intrinsic functions
    350351                                        return appExpr;
     
    392393
    393394                bool ResolveCopyCtors::skipCopyConstruct( Type * type ) {
    394                         return dynamic_cast< VarArgsType * >( type ) || GenPoly::getFunctionType( type );
     395                        return dynamic_cast< VarArgsType * >( type ) || GenPoly::getFunctionType( type ) || Tuples::isTtype( type );
    395396                }
    396397
     
    10991100                        addDeclaration( tmp );
    11001101
     1102                        // xxx - this can be TupleAssignExpr now. Need to properly handle this case.
    11011103                        ApplicationExpr * callExpr = safe_dynamic_cast< ApplicationExpr * > ( ctorExpr->get_callExpr() );
    11021104                        TypeSubstitution * env = ctorExpr->get_env();
Note: See TracChangeset for help on using the changeset viewer.