Changes in src/InitTweak/FixInit.cc [9554d9b:7b3f66b]
- File:
-
- 1 edited
-
src/InitTweak/FixInit.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
r9554d9b r7b3f66b 131 131 // optimization: don't need to copy construct in order to call intrinsic functions 132 132 return appExpr; 133 } else if ( DeclarationWithType * funcDecl = dynamic_cast< DeclarationWithType * > ( function->get_var() ) ) { 134 // FunctionType * ftype = funcDecl->get_functionType(); 135 FunctionType * ftype = dynamic_cast< FunctionType * >( GenPoly::getFunctionType( funcDecl->get_type() ) ); 136 assert( ftype ); 133 } else if ( FunctionDecl * funcDecl = dynamic_cast< FunctionDecl * > ( function->get_var() ) ) { 134 FunctionType * ftype = funcDecl->get_functionType(); 137 135 if ( (funcDecl->get_name() == "?{}" || funcDecl->get_name() == "?=?") && ftype->get_parameters().size() == 2 ) { 138 136 Type * t1 = ftype->get_parameters().front()->get_type(); … … 140 138 PointerType * ptrType = dynamic_cast< PointerType * > ( t1 ); 141 139 assert( ptrType ); 142 143 140 if ( ResolvExpr::typesCompatible( ptrType->get_base(), t2, SymTab::Indexer() ) ) { 144 141 // optimization: don't need to copy construct in order to call a copy constructor or
Note:
See TracChangeset
for help on using the changeset viewer.