Changeset b37dba0


Ignore:
Timestamp:
Aug 14, 2017, 5:24:08 PM (4 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:
db67b11
Parents:
5a824c2
Message:

Add reference to rvalue conversion to sizeof/alignof argument

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    r5a824c2 rb37dba0  
    992992                        // return the lowest cost alternative for the argument
    993993                        Alternative &choice = winners.front();
     994                        referenceToRvalueConversion( choice.expr );
    994995                        alternatives.push_back( Alternative( new SizeofExpr( choice.expr->clone() ), choice.env, Cost::zero ) );
    995996                } // if
     
    10121013                        // return the lowest cost alternative for the argument
    10131014                        Alternative &choice = winners.front();
     1015                        referenceToRvalueConversion( choice.expr );
    10141016                        alternatives.push_back( Alternative( new AlignofExpr( choice.expr->clone() ), choice.env, Cost::zero ) );
    10151017                } // if
Note: See TracChangeset for help on using the changeset viewer.