]> granicus.if.org Git - clang/commit
PR12208: Under -fno-elide-constructors, don't forget to actually copy an NRVO
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 11 Jan 2014 01:24:05 +0000 (01:24 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 11 Jan 2014 01:24:05 +0000 (01:24 +0000)
commitdaffa2c523921ffdd333be145e7f0f77cd02f39c
tree6dc8ffe6c07768da9322bdd12fd0cbf84ed00c36
parentc3a5420a77b7b578f07cfbd8054612f45aa0c939
PR12208: Under -fno-elide-constructors, don't forget to actually copy an NRVO
variable to the return slot. Patch by David Wiberg, with test case alterations
by me.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198991 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmt.cpp
test/CodeGenCXX/no-elide-constructors.cpp [new file with mode: 0644]