aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/ConstantFold.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-05-17 09:05:22 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-05-17 09:05:22 +0000
commit6cccce3e58009c92876651877a9a7a19e78b89e8 (patch)
tree0be949196c29fe7d9d32c8825646497e275f0e38 /lib/VMCore/ConstantFold.cpp
parentd24ae8703f2da048b351d6c9c83d1412439e737c (diff)
downloadexternal_llvm-6cccce3e58009c92876651877a9a7a19e78b89e8.zip
external_llvm-6cccce3e58009c92876651877a9a7a19e78b89e8.tar.gz
external_llvm-6cccce3e58009c92876651877a9a7a19e78b89e8.tar.bz2
Unbreak the build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantFold.cpp')
-rw-r--r--lib/VMCore/ConstantFold.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp
index e381f3b..07df0bf 100644
--- a/lib/VMCore/ConstantFold.cpp
+++ b/lib/VMCore/ConstantFold.cpp
@@ -1036,7 +1036,7 @@ static ICmpInst::Predicate evaluateICmpRelation(const Constant *V1,
if (CE1->getOpcode() == CE2->getOpcode()) {
Constant *Op1 = const_cast<Constant*>(CE1Op0);
Constant *Op2 = CE2->getOperand(0);
- if (CE1Op->getType() == CE2Op->getType()) {
+ if (Op1->getType() == Op2->getType()) {
ConstantInt *R = 0;
ICmpInst::Predicate pred = ICmpInst::ICMP_EQ;