summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-01-07 22:05:52 +0000
committerAdrian Prantl <aprantl@apple.com>2014-01-07 22:05:52 +0000
commitda45f59bdf398efea71e0b6596ebf2b65d8549dc (patch)
treeb5d0598a10f64970ccf5aff3cfda3208e08f8f8e /lib/CodeGen/CodeGenFunction.cpp
parentb9b5b2ce07cfddd64e7e2cd06353cc9f4a566ede (diff)
downloadclang-da45f59bdf398efea71e0b6596ebf2b65d8549dc.tar.gz
clang-da45f59bdf398efea71e0b6596ebf2b65d8549dc.tar.bz2
clang-da45f59bdf398efea71e0b6596ebf2b65d8549dc.tar.xz
Revert "Debug info: Ensure that the last stop point in a function is still within"
This reverts commit r198461. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index fb668e4a16..c1e522d0d7 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -209,10 +209,9 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) {
// all will be fine.
if (CGDebugInfo *DI = getDebugInfo()) {
if (OnlySimpleReturnStmts)
- DI->EmitLocation(Builder, LastStopPoint.first,
- false, LastStopPoint.second);
+ DI->EmitLocation(Builder, LastStopPoint);
else
- DI->EmitLocation(Builder, EndLoc, false, LastStopPoint.second);
+ DI->EmitLocation(Builder, EndLoc);
}
// Pop any cleanups that might have been associated with the
@@ -229,7 +228,7 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) {
if (CGDebugInfo *DI = getDebugInfo())
if (OnlySimpleReturnStmts)
- DI->EmitLocation(Builder, EndLoc, false, LastStopPoint.second);
+ DI->EmitLocation(Builder, EndLoc);
}
// Emit function epilog (to return).