aboutsummaryrefslogtreecommitdiff
path: root/clang/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
commite83b130defce6ff6ee69c300c14eec52cabadc88 (patch)
tree9bc431d4fc921f2a655bac0434af56ce12c10ac9 /clang/lib/CodeGen/CodeGenFunction.cpp
parentc6758879b3b048e334a84f436cae47f2c314be0b (diff)
downloadllvm-e83b130defce6ff6ee69c300c14eec52cabadc88.zip
llvm-e83b130defce6ff6ee69c300c14eec52cabadc88.tar.gz
llvm-e83b130defce6ff6ee69c300c14eec52cabadc88.tar.bz2
Revert "Debug info: Ensure that the last stop point in a function is still within"
This reverts commit r198461. llvm-svn: 198714
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index fb668e4..c1e522d 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/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).