aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support
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 /include/llvm/Support
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 'include/llvm/Support')
-rw-r--r--include/llvm/Support/IRBuilder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h
index ca65aa1..7d529b0 100644
--- a/include/llvm/Support/IRBuilder.h
+++ b/include/llvm/Support/IRBuilder.h
@@ -744,14 +744,14 @@ public:
if (Constant *LC = dyn_cast<Constant>(LHS))
if (Constant *RC = dyn_cast<Constant>(RHS))
return Folder.CreateICmp(P, LC, RC);
- return Insert(new ICmpInst(Context, P, LHS, RHS), Name);
+ return Insert(new ICmpInst(P, LHS, RHS), Name);
}
Value *CreateFCmp(CmpInst::Predicate P, Value *LHS, Value *RHS,
const Twine &Name = "") {
if (Constant *LC = dyn_cast<Constant>(LHS))
if (Constant *RC = dyn_cast<Constant>(RHS))
return Folder.CreateFCmp(P, LC, RC);
- return Insert(new FCmpInst(Context, P, LHS, RHS), Name);
+ return Insert(new FCmpInst(P, LHS, RHS), Name);
}
//===--------------------------------------------------------------------===//