]> granicus.if.org Git - clang/commit
Attempt to un-break the gdb buildbot.
authorAdrian Prantl <aprantl@apple.com>
Fri, 3 May 2013 00:44:13 +0000 (00:44 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 3 May 2013 00:44:13 +0000 (00:44 +0000)
commit30c0d27b61e38ad6038eeb8650f0dac83056c75b
treef6a518899d04ca7ea2e2234f452c467eab0e225f
parentd306a530fca74e40916121f5583e0545e470b3c4
Attempt to un-break the gdb buildbot.
- Use the debug location of the return expression for the cleanup code
  if the return expression is trivially evaluatable, regardless of the
  number of stop points in the function.
- Ensure that any EH code in the cleanup still gets the line number of
  the closing } of the lexical scope.
- Added a testcase with EH in the cleanup.

rdar://problem/13442648

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180982 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCleanup.cpp
lib/CodeGen/CGStmt.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCXX/linetable-cleanup.cpp [new file with mode: 0644]