From 96e70d9148df9f62c0e0d9ff6368b90c0b440c97 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 3 Jan 2014 23:34:30 +0000 Subject: Debug info: Ensure that the last stop point in a function is still within the lexical block formed by the compound statement that is the function body. rdar://problem/15010825 llvm-svn: 198461 --- clang/lib/CodeGen/CGStmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGStmt.cpp') diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 779054b450e..6224839ff7c 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -37,7 +37,7 @@ void CodeGenFunction::EmitStopPoint(const Stmt *S) { Loc = S->getLocStart(); DI->EmitLocation(Builder, Loc); - LastStopPoint = Loc; + LastStopPoint = std::make_pair(Loc, DI->getScope()); } } -- cgit v1.2.3