diff options
| author | Adrian Prantl <aprantl@apple.com> | 2013-05-16 00:41:26 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2013-05-16 00:41:26 +0000 |
| commit | 1c3db769249a633108dc320da87c48a432e2bcc1 (patch) | |
| tree | 151960560c28c23e8809cab6f9494af9a0212c91 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 214c3d6c64674427e3eaa8e8fefac8c684302010 (diff) | |
| download | clang-1c3db769249a633108dc320da87c48a432e2bcc1.tar.gz clang-1c3db769249a633108dc320da87c48a432e2bcc1.tar.bz2 clang-1c3db769249a633108dc320da87c48a432e2bcc1.tar.xz | |
Cleanup: Use a member variable to store the SourceLocation for EH code.
rdar://problem/13888152
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 071c08e6bf..3e04ae7d15 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -209,7 +209,7 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) { // edges will be *really* confused. bool EmitRetDbgLoc = true; if (EHStack.stable_begin() != PrologueCleanupDepth) { - PopCleanupBlocks(PrologueCleanupDepth, EndLoc); + PopCleanupBlocks(PrologueCleanupDepth); // Make sure the line table doesn't jump back into the body for // the ret after it's been at EndLoc. @@ -666,6 +666,7 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, SourceRange BodyRange; if (Stmt *Body = FD->getBody()) BodyRange = Body->getSourceRange(); + CurEHLocation = BodyRange.getEnd(); // CalleeWithThisReturn keeps track of the last callee inside this function // that returns 'this'. Before starting the function, we set it to null. |
