diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-08-15 21:11:25 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-08-15 21:11:25 +0000 |
commit | 0c8e3f2fddaf868e99edb49dc75a8c74ee97bd6d (patch) | |
tree | f04015e2ac5d3c4e9eee01b7a3baaa91e4f44511 /clang/lib/CodeGen/CGStmt.cpp | |
parent | 0ee846ff3cf30ef625d6f781020deb90ff16c9c4 (diff) | |
download | bcm5719-llvm-0c8e3f2fddaf868e99edb49dc75a8c74ee97bd6d.tar.gz bcm5719-llvm-0c8e3f2fddaf868e99edb49dc75a8c74ee97bd6d.zip |
DebugInfo: While loop backedge should be attribute to the start of the while statement.
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: 215768
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 970fdef17aa..1395d60ab07 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -730,6 +730,7 @@ void CodeGenFunction::EmitWhileStmt(const WhileStmt &S, // Immediately force cleanup. ConditionScope.ForceCleanup(); + EmitStopPoint(&S); // Branch to the loop header again. EmitBranch(LoopHeader.getBlock()); |