projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use one destination constructor for the unconditional branch.
[oota-llvm.git]
/
lib
/
Transforms
/
Utils
/
UnifyFunctionExitNodes.cpp
diff --git
a/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
b/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
index 064bba5dddd0f36de4596f3bc4ce6940c4f82271..89710edaf56deb003cfa2b15aced602ac0a2ba3c 100644
(file)
--- a/
lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
+++ b/
lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
@@
-66,7
+66,7
@@
bool UnifyFunctionExitNodes::runOnFunction(Function &F) {
E = UnwindingBlocks.end(); I != E; ++I) {
BasicBlock *BB = *I;
BB->getInstList().pop_back(); // Remove the return insn
- new BranchInst(UnwindBlock,
0, 0,
BB);
+ new BranchInst(UnwindBlock, BB);
}
}