Changes in src/InitTweak/FixInit.cc [627f585:31f379c]
- File:
-
- 1 edited
-
src/InitTweak/FixInit.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
r627f585 r31f379c 38 38 #include "SynTree/AddStmtVisitor.h" 39 39 #include "CodeGen/GenType.h" // for warning/error messages 40 #include "Tuples/Tuples.h"41 40 42 41 bool ctordtorp = false; // print all debug … … 347 346 348 347 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 ) { 350 349 // optimization: don't need to copy construct in order to call intrinsic functions 351 350 return appExpr; … … 393 392 394 393 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 ); 396 395 } 397 396 … … 1100 1099 addDeclaration( tmp ); 1101 1100 1102 // xxx - this can be TupleAssignExpr now. Need to properly handle this case.1103 1101 ApplicationExpr * callExpr = safe_dynamic_cast< ApplicationExpr * > ( ctorExpr->get_callExpr() ); 1104 1102 TypeSubstitution * env = ctorExpr->get_env();
Note:
See TracChangeset
for help on using the changeset viewer.