aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-07-06 22:04:06 +0000
committerDouglas Gregor <dgregor@apple.com>2011-07-06 22:04:06 +0000
commit53e191ed948cf2307b011cdf019ceb2bfdb39e75 (patch)
tree02b518141d8eb80b35194591663f98612511080d /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent928ce72bcdd7a9be4d30691be46da3099c0fcdc4 (diff)
downloadllvm-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