aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhou Sheng <zhousheng00@gmail.com>2008-02-22 10:00:35 +0000
committerZhou Sheng <zhousheng00@gmail.com>2008-02-22 10:00:35 +0000
commit58d13af6f06feeb9e8bdc0a19c32daf70c325c9c (patch)
tree29229830667bb38da54b9f28ddf7b6ba3542c9d5
parentd8850a512ee4023420abf95f3576827cd28c216a (diff)
downloadexternal_llvm-58d13af6f06feeb9e8bdc0a19c32daf70c325c9c.zip
external_llvm-58d13af6f06feeb9e8bdc0a19c32daf70c325c9c.tar.gz
external_llvm-58d13af6f06feeb9e8bdc0a19c32daf70c325c9c.tar.bz2
Fixed a typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47478 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index d6d8781..e17d164 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -2428,7 +2428,7 @@ Instruction *InstCombiner::visitSub(BinaryOperator &I) {
ConstantInt *C2; // X*C1 - X*C2 -> X * (C1-C2)
if (X == dyn_castFoldableMul(Op1, C2))
- return BinaryOperator::createMul(Op1, Subtract(C1, C2));
+ return BinaryOperator::createMul(X, Subtract(C1, C2));
}
return 0;
}