]> granicus.if.org Git - clang/commit
When applying the named return value optimization, we still need to
authorDouglas Gregor <dgregor@apple.com>
Sat, 15 May 2010 16:39:56 +0000 (16:39 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 15 May 2010 16:39:56 +0000 (16:39 +0000)
commitb5b30b96e0accaf3c78a19c3febba5136dae8386
treee18ce3f3cf48acf8b6ee0fe2820d8678d1090ae7
parentc12c5bba6ceb6acd4e51e7a0fc03257da9cfd44e
When applying the named return value optimization, we still need to
destroy the variable along the exceptional edge; it's only during
normal execution that we avoid destroying this variable.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103872 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDecl.cpp
test/CodeGenCXX/nrvo.cpp