Changeset 3f97e68


Ignore:
Timestamp:
Jul 4, 2016, 5:03:26 PM (5 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
30e81fb
Parents:
ed3f3bf4
Message:

fix clone bug related to function-scoped static variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    red3f3bf4 r3f97e68  
    449449                                                FunctionDecl * dtorCaller = new FunctionDecl( objDecl->get_mangleName() + "_dtor_atexit", DeclarationNode::NoStorageClass, LinkageSpec::C, new FunctionType( Type::Qualifiers(), false ), new CompoundStmt( noLabels ), false, false );
    450450                                                dtorCaller->fixUniqueId();
    451                                                 dtorCaller->get_statements()->get_kids().push_back( ctorInit->get_dtor() );
     451                                                dtorCaller->get_statements()->get_kids().push_back( ctorInit->get_dtor()->clone() );
    452452
    453453                                                // on_exit(dtor_atexit);
Note: See TracChangeset for help on using the changeset viewer.