]> granicus.if.org Git - clang/commit
Only make a call to a copy constructor elidable if in fact we are
authorDouglas Gregor <dgregor@apple.com>
Sat, 10 Mar 2012 06:53:13 +0000 (06:53 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 10 Mar 2012 06:53:13 +0000 (06:53 +0000)
commitf52757d63f90e0d03eba20318f6036db944ba50c
treea51d6ab56bdaf29534824be7a9b810f026e49815
parenta346efaaad5cd779cdfd5be73c2b258748ad1f06
Only make a call to a copy constructor elidable if in fact we are
doing a copy. Fixes PR12139.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152485 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/CodeGenCXX/copy-constructor-elim-2.cpp