diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-08-22 22:25:37 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-08-22 22:25:37 +0000 |
commit | 7bc2da19e7b148a233038e7c8b615aaa4993f3f4 (patch) | |
tree | 14b3d66dfb200f9363ccae46cd3fd10ec0429783 /clang/lib/CodeGen/CGStmt.cpp | |
parent | 109ce69e756a03ccbbfa7d56267d1dd8282f16c7 (diff) | |
download | bcm5719-llvm-7bc2da19e7b148a233038e7c8b615aaa4993f3f4.tar.gz bcm5719-llvm-7bc2da19e7b148a233038e7c8b615aaa4993f3f4.zip |
DebugInfo: for loop backedge should be attributed to the start of the for statement.
Similar to r215768 (which fixed the same case for while loops). To quote
r215768's commit message:
"A little test case simplification - this could be simplified further,
though there are certainly interesting connections to the if/else
construct so I'm hesitant to remove that entirely though it does appear
somewhat unrelated.
(similar fix to r215766, related to PR19864)"
llvm-svn: 216297
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 6912378cadf..d8681d480f4 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -894,6 +894,8 @@ void CodeGenFunction::EmitForStmt(const ForStmt &S, BreakContinueStack.pop_back(); ConditionScope.ForceCleanup(); + + EmitStopPoint(&S); EmitBranch(CondBlock); ForScope.ForceCleanup(); |