]> granicus.if.org Git - clang/commit
Debug Info: Fix the source range for IfStmt's ConditionScope.
authorAdrian Prantl <aprantl@apple.com>
Wed, 28 May 2014 19:10:59 +0000 (19:10 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 28 May 2014 19:10:59 +0000 (19:10 +0000)
commite700e8b505327b657600405d8f2c361c6a5536e5
tree6a3702c581c2db888de1c92a507b49f75f82cf35
parente05f098a423885a218a652dd347a2ab6a35a59a6
Debug Info: Fix the source range for IfStmt's ConditionScope.
Since the continuation block of the if statement is emitted within the
condition scope this had the undesirable effect of creating a line table
entry at the end of the then or else statement, a line that may have never
been executed.
PR19864 / rdar://problem/17052973

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209764 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmt.cpp
test/CodeGenCXX/debug-info-line-if.cpp [new file with mode: 0644]