summaryrefslogtreecommitdiffstats
path: root/clang/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. llvm-svn: 316836
* [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. llvm-svn: 288866
OpenPOWER on IntegriCloud