aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-25 23:17:54 +0000
committerDan Gohman <gohman@apple.com>2009-08-25 23:17:54 +0000
commit1c8a23c440b1665ba422778cdc74a0c59ecaf39e (patch)
tree5d1c103f953a54dcfcff074c5fa800739b1b140a /lib/Transforms/Utils
parent2f3fa88a2515e1ba9c5a3a8cc4add0b79b492ba0 (diff)
downloadexternal_llvm-1c8a23c440b1665ba422778cdc74a0c59ecaf39e.zip
external_llvm-1c8a23c440b1665ba422778cdc74a0c59ecaf39e.tar.gz
external_llvm-1c8a23c440b1665ba422778cdc74a0c59ecaf39e.tar.bz2
Eliminate the unused Context argument on one of the ICmpInst and FCmpInst
constructors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80049 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/LowerSwitch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/LowerSwitch.cpp b/lib/Transforms/Utils/LowerSwitch.cpp
index 974698d..764f098 100644
--- a/lib/Transforms/Utils/LowerSwitch.cpp
+++ b/lib/Transforms/Utils/LowerSwitch.cpp
@@ -159,7 +159,7 @@ BasicBlock* LowerSwitch::switchConvert(CaseItr Begin, CaseItr End,
Function::iterator FI = OrigBlock;
F->getBasicBlockList().insert(++FI, NewNode);
- ICmpInst* Comp = new ICmpInst(Default->getContext(), ICmpInst::ICMP_SLT,
+ ICmpInst* Comp = new ICmpInst(ICmpInst::ICMP_SLT,
Val, Pivot.Low, "Pivot");
NewNode->getInstList().push_back(Comp);
BranchInst::Create(LBranch, RBranch, Comp, NewNode);