aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/LLParser.cpp
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/AsmParser/LLParser.cpp
parent2f3fa88a2515e1ba9c5a3a8cc4add0b79b492ba0 (diff)
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/AsmParser/LLParser.cpp')
-rw-r--r--lib/AsmParser/LLParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp
index f744f089a8..5ac4a82ccb 100644
--- a/lib/AsmParser/LLParser.cpp
+++ b/lib/AsmParser/LLParser.cpp
@@ -3089,13 +3089,13 @@ bool LLParser::ParseCompare(Instruction *&Inst, PerFunctionState &PFS,
if (Opc == Instruction::FCmp) {
if (!LHS->getType()->isFPOrFPVector())
return Error(Loc, "fcmp requires floating point operands");
- Inst = new FCmpInst(Context, CmpInst::Predicate(Pred), LHS, RHS);
+ Inst = new FCmpInst(CmpInst::Predicate(Pred), LHS, RHS);
} else {
assert(Opc == Instruction::ICmp && "Unknown opcode for CmpInst!");
if (!LHS->getType()->isIntOrIntVector() &&
!isa<PointerType>(LHS->getType()))
return Error(Loc, "icmp requires integer operands");
- Inst = new ICmpInst(Context, CmpInst::Predicate(Pred), LHS, RHS);
+ Inst = new ICmpInst(CmpInst::Predicate(Pred), LHS, RHS);
}
return false;
}