]> granicus.if.org Git - clang/commit
DebugInfo: Test that the loop backedge in a range-for is attribute to the loop header.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 22 Aug 2014 22:29:50 +0000 (22:29 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 22 Aug 2014 22:29:50 +0000 (22:29 +0000)
commit91d7339375532eb2129db41212b0a4b8b6ef7063
tree9a7d4d1001f03acc2d6fac7f8d90707f360d2f2a
parent5ed816192a37eefceb0bd501bc935501f4b8e745
DebugInfo: Test that the loop backedge in a range-for is attribute to the loop header.

This already works, but somewhat by accident (due to the order of
emission in clang, the location is set to the loop header (during the
emission of the iteratior increment) before the loop backedge is
emitted), so let's just add a test for symmetry and future-proofing.

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