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)
commit328f88add9bdbcb8d5f08385a9d378dcef87933b
treeda65e9beda229283d0a37a840bf6cf175e45a89f
parent26b6edcf441207ec9680c1a41e3666f86ae58903
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

llvm-svn: 209764
clang/lib/CodeGen/CGStmt.cpp
clang/test/CodeGenCXX/debug-info-line-if.cpp [new file with mode: 0644]