aboutsummaryrefslogtreecommitdiffstats
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
commite6803b821738076b5b2299c1cd496be0d0042362 (patch)
tree5d1c103f953a54dcfcff074c5fa800739b1b140a /lib/AsmParser/LLParser.cpp
parent4e46ac9407307942712236f8c91875ef323c182f (diff)
downloadexternal_llvm-e6803b821738076b5b2299c1cd496be0d0042362.zip
external_llvm-e6803b821738076b5b2299c1cd496be0d0042362.tar.gz
external_llvm-e6803b821738076b5b2299c1cd496be0d0042362.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/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 f744f08..5ac4a82 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;
}