summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/cxx1z-copy-omission.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR35039: Materialize temporary objects before wrapping them in anRichard Smith2017-10-281-0/+26
| | | | | | | | | | OpaqueValueExpr in a GNU binary conditional expression. It's not meaningful for a non-materialized temporary object to be used as a common subexpression of multiple expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316836 91177308-0d34-0410-b5e6-96231b3b80d8
* [c++17] P0135R1: Guaranteed copy elision.Richard Smith2016-12-061-0/+81
When an object of class type is initialized from a prvalue of the same type (ignoring cv qualifications), use the prvalue to initialize the object directly instead of inserting a redundant elidable call to a copy constructor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288866 91177308-0d34-0410-b5e6-96231b3b80d8