diff options
author | Devang Patel <dpatel@apple.com> | 2011-03-30 00:08:31 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-03-30 00:08:31 +0000 |
commit | acd723666777b4ac1f79a97b6a300e6cf919d519 (patch) | |
tree | 0f2e9e1e654130ef44c8bcf5a18adeebe199cd3f /lib/CodeGen/CGExprScalar.cpp | |
parent | 1b02dcdbe0aa9733b4ff2657216bd52a493f5627 (diff) |
Fix in r128471 is very broad. Some of the unconditional branches need line number information for better user experience.
Restrict the fix. This fixes break.exp failures from gdb testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index a28de703e5..33a0b5d04c 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -2317,6 +2317,9 @@ Value *ScalarExprEmitter::VisitBinLAnd(const BinaryOperator *E) { // Emit an unconditional branch from this block to ContBlock. Insert an entry // into the phi node for the edge with the value of RHSCond. + if (CGF.getDebugInfo()) + // There is no need to emit line number for unconditional branch. + Builder.SetCurrentDebugLocation(llvm::DebugLoc()); CGF.EmitBlock(ContBlock); PN->addIncoming(RHSCond, RHSBlock); |