Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    r138e29e rb7b8674  
    313313                                        translationUnit.splice( i, fixer.staticDtorDecls );
    314314                                } catch( SemanticError &e ) {
    315                                         e.set_location( (*i)->location );
    316315                                        errors.append( e );
    317316                                } // try
     
    11171116                        // xxx - is the size check necessary?
    11181117                        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.
    11191120                        ObjectDecl * tmp = new ObjectDecl( tempNamer.newName(), DeclarationNode::NoStorageClass, LinkageSpec::C, nullptr, ctorExpr->get_result()->clone(), nullptr );
    11201121                        addDeclaration( tmp );
Note: See TracChangeset for help on using the changeset viewer.