diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-07-06 22:04:06 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-07-06 22:04:06 +0000 |
commit | 53e191ed948cf2307b011cdf019ceb2bfdb39e75 (patch) | |
tree | 02b518141d8eb80b35194591663f98612511080d /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 928ce72bcdd7a9be4d30691be46da3099c0fcdc4 (diff) | |
download | llvm-53e191ed948cf2307b011cdf019ceb2bfdb39e75.zip llvm-53e191ed948cf2307b011cdf019ceb2bfdb39e75.tar.gz llvm-53e191ed948cf2307b011cdf019ceb2bfdb39e75.tar.bz2 |
Properly implement the scope restriction on the NRVO for
throw-expressions, such that we don't consider the NRVO when the
non-volatile automatic object comes from outside the innermost try
scope (C++0x [class.copymove]p13). In C++98/03, our ASTs were
incorrect but it didn't matter because IR generation doesn't actually
apply the NRVO here. In C++0x, however, we were moving from an object
when in fact we should have copied from it. Fixes PR10142 /
<rdar://problem/9714312>.
llvm-svn: 134548
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions