]> granicus.if.org Git - clang/commit
DebugInfo: for loop backedge should be attributed to the start of the for statement.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 22 Aug 2014 22:25:37 +0000 (22:25 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 22 Aug 2014 22:25:37 +0000 (22:25 +0000)
commit5ed816192a37eefceb0bd501bc935501f4b8e745
tree554ff3e771f6c1ed2f13d20c864468d9bc5fa3e3
parentb7bb8d9bb1041eeddf4f2581625c42a3f10d1881
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)"

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216297 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmt.cpp
test/CodeGenCXX/debug-info-line-if.cpp