Ignore:
Timestamp:
Dec 9, 2016, 1:02:45 PM (5 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
599b386, 5c6afcd
Parents:
6a16806
Message:

don't try to destruct return values from builtin functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    r6a16806 r9a063c8  
    330330
    331331                        if ( VariableExpr * function = dynamic_cast< VariableExpr * > ( appExpr->get_function() ) ) {
    332                                 if ( function->get_var()->get_linkage() == LinkageSpec::Intrinsic ) {
     332                                if ( LinkageSpec::isBuiltin( function->get_var()->get_linkage() ) ) {
    333333                                        // optimization: don't need to copy construct in order to call intrinsic functions
    334334                                        return appExpr;
Note: See TracChangeset for help on using the changeset viewer.