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