diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-21 16:52:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-21 16:52:05 +0000 |
commit | 108e4ab159b59a616b0868e396dc7ddc1fb48616 (patch) | |
tree | fa6892850c59a118e0538ff21d0beb01f2d5ce0b /lib/Transforms/Utils/LowerSwitch.cpp | |
parent | 2436eda94ac811d338a03c50ef82b66e37ddd56f (diff) |
Minor cleanups and simplifications
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerSwitch.cpp')
-rw-r--r-- | lib/Transforms/Utils/LowerSwitch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/LowerSwitch.cpp b/lib/Transforms/Utils/LowerSwitch.cpp index bec23fffc8..24e48d4c5d 100644 --- a/lib/Transforms/Utils/LowerSwitch.cpp +++ b/lib/Transforms/Utils/LowerSwitch.cpp @@ -186,7 +186,7 @@ void LowerSwitch::processSwitchInst(SwitchInst *SI) { // If there is only the default destination, don't bother with the code below. if (SI->getNumOperands() == 2) { - new BranchInst(SI->getDefaultDest(), 0, 0, CurBlock); + new BranchInst(SI->getDefaultDest(), CurBlock); delete SI; return; } @@ -196,7 +196,7 @@ void LowerSwitch::processSwitchInst(SwitchInst *SI) { BasicBlock* NewDefault = new BasicBlock("NewDefault"); F->getBasicBlockList().insert(Default, NewDefault); - new BranchInst(Default, 0, 0, NewDefault); + new BranchInst(Default, NewDefault); // If there is an entry in any PHI nodes for the default edge, make sure // to update them as well. @@ -219,7 +219,7 @@ void LowerSwitch::processSwitchInst(SwitchInst *SI) { OrigBlock, NewDefault); // Branch to our shiny new if-then stuff... - new BranchInst(SwitchBlock, 0, 0, OrigBlock); + new BranchInst(SwitchBlock, OrigBlock); // We are now done with the switch instruction, delete it. delete SI; |