Changeset b37dba0


Ignore:
Timestamp:
Aug 14, 2017, 5:24:08 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, 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.