diff options
author | Chris Lattner <sabre@nondot.org> | 2011-01-08 18:47:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-01-08 18:47:43 +0000 |
commit | 30d95f9f872f0e2f4460fbd1896200213070420d (patch) | |
tree | 4ee7faa847e8c87f61026d4ea979f4d555b20dfe /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | 7c9eab8fef0ed79a5911d21eb97b6b0fa9d39f82 (diff) | |
download | bcm5719-llvm-30d95f9f872f0e2f4460fbd1896200213070420d.tar.gz bcm5719-llvm-30d95f9f872f0e2f4460fbd1896200213070420d.zip |
reduce nesting.
llvm-svn: 123071
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp index ff742acd9d3..6f6fd15a2e7 100644 --- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -254,13 +254,13 @@ BasicBlock *llvm::SplitEdge(BasicBlock *BB, BasicBlock *Succ, Pass *P) { assert(SP == BB && "CFG broken"); SP = NULL; return SplitBlock(Succ, Succ->begin(), P); - } else { - // Otherwise, if BB has a single successor, split it at the bottom of the - // block. - assert(BB->getTerminator()->getNumSuccessors() == 1 && - "Should have a single succ!"); - return SplitBlock(BB, BB->getTerminator(), P); } + + // Otherwise, if BB has a single successor, split it at the bottom of the + // block. + assert(BB->getTerminator()->getNumSuccessors() == 1 && + "Should have a single succ!"); + return SplitBlock(BB, BB->getTerminator(), P); } /// SplitBlock - Split the specified block at the specified instruction - every |