summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/Reassociate.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-12 16:23:25 +0000
committerDan Gohman <gohman@apple.com>2009-08-12 16:23:25 +0000
commit5476cfdb15c2104fe847a9dd5bdae87c9aa54234 (patch)
treeb8aab37f91382899059f8cc1237becc99933289e /llvm/lib/Transforms/Scalar/Reassociate.cpp
parent6b490ce4c74f1fdb48430deae78cacf444aaf5db (diff)
downloadbcm5719-llvm-5476cfdb15c2104fe847a9dd5bdae87c9aa54234.tar.gz
bcm5719-llvm-5476cfdb15c2104fe847a9dd5bdae87c9aa54234.zip
Remove a bunch more now-unnecessary Context arguments.
llvm-svn: 78809
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Reassociate.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/Reassociate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp
index e8bc859517e..5592c909cf7 100644
--- a/llvm/lib/Transforms/Scalar/Reassociate.cpp
+++ b/llvm/lib/Transforms/Scalar/Reassociate.cpp
@@ -403,7 +403,7 @@ static Value *NegateValue(LLVMContext &Context, Value *V, Instruction *BI) {
// Insert a 'neg' instruction that subtracts the value from zero to get the
// negation.
//
- return BinaryOperator::CreateNeg(Context, V, V->getName() + ".neg", BI);
+ return BinaryOperator::CreateNeg(V, V->getName() + ".neg", BI);
}
/// ShouldBreakUpSubtract - Return true if we should break up this subtract of
OpenPOWER on IntegriCloud