projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
416b711
)
Preserve line number information.
author
Devang Patel
<dpatel@apple.com>
Tue, 17 May 2011 19:43:06 +0000
(19:43 +0000)
committer
Devang Patel
<dpatel@apple.com>
Tue, 17 May 2011 19:43:06 +0000
(19:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131480
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/BreakCriticalEdges.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/BreakCriticalEdges.cpp
b/lib/Transforms/Utils/BreakCriticalEdges.cpp
index caf2aeb4d30a17bae3277d5427ec199e38b010e3..d6206a3f3326717d417ee2257f87a89efb256040 100644
(file)
--- a/
lib/Transforms/Utils/BreakCriticalEdges.cpp
+++ b/
lib/Transforms/Utils/BreakCriticalEdges.cpp
@@
-180,7
+180,8
@@
BasicBlock *llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum,
BasicBlock *NewBB = BasicBlock::Create(TI->getContext(),
TIBB->getName() + "." + DestBB->getName() + "_crit_edge");
// Create our unconditional branch.
- BranchInst::Create(DestBB, NewBB);
+ BranchInst *NewBI = BranchInst::Create(DestBB, NewBB);
+ NewBI->setDebugLoc(TI->getDebugLoc());
// Branch to the new block, breaking the edge.
TI->setSuccessor(SuccNum, NewBB);