Changes in src/InitTweak/FixInit.cc [138e29e:b7b8674]
- File:
-
- 1 edited
-
src/InitTweak/FixInit.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
r138e29e rb7b8674 313 313 translationUnit.splice( i, fixer.staticDtorDecls ); 314 314 } catch( SemanticError &e ) { 315 e.set_location( (*i)->location );316 315 errors.append( e ); 317 316 } // try … … 1117 1116 // xxx - is the size check necessary? 1118 1117 assert( ctorExpr->has_result() && ctorExpr->get_result()->size() == 1 ); 1118 1119 // xxx - ideally we would reuse the temporary generated from the copy constructor passes from within firstArg if it exists and not generate a temporary if it's unnecessary. 1119 1120 ObjectDecl * tmp = new ObjectDecl( tempNamer.newName(), DeclarationNode::NoStorageClass, LinkageSpec::C, nullptr, ctorExpr->get_result()->clone(), nullptr ); 1120 1121 addDeclaration( tmp );
Note:
See TracChangeset
for help on using the changeset viewer.