From 108e4ab159b59a616b0868e396dc7ddc1fb48616 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 21 Nov 2003 16:52:05 +0000 Subject: Minor cleanups and simplifications git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10127 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/LowerSwitch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Transforms/Utils/LowerSwitch.cpp') 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; -- cgit v1.2.3