Revert "Debug info: Ensure that the last stop point in a function is still within"
This reverts commit r198461. llvm-svn: 198714
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user