Unbreak the build.
authorNick Lewycky <nicholas@mxc.ca>
Sat, 17 May 2008 09:05:22 +0000 (09:05 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 17 May 2008 09:05:22 +0000 (09:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51217 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/ConstantFold.cpp

index e381f3b102887f189587fcea27979567b4a62014..07df0bfba053789508a06b80dc3a657c0b568423 100644 (file)
@@ -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;