Kill the bogon that slipped into my buffer before I committed.
authorChris Lattner <sabre@nondot.org>
Sat, 16 Oct 2004 19:46:33 +0000 (19:46 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 16 Oct 2004 19:46:33 +0000 (19:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17067 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index a874723b5413e4c1ddc128c52d9c604a104224ee..91aebc1efdba52e0c81990461d612b1fad767055 100644 (file)
@@ -4031,7 +4031,7 @@ bool InstCombiner::runOnFunction(Function &F) {
           uint64_t Offset = TD->getIndexedOffset(I->getOperand(0)->getType(),
                              std::vector<Value*>(I->op_begin()+1, I->op_end()));
           C = ConstantUInt::get(Type::ULongTy, Offset);
-          C = ConstantUInt::getCast(C, TD->getIntPtrType());
+          C = ConstantExpr::getCast(C, TD->getIntPtrType());
           C = ConstantExpr::getCast(C, I->getType());
         }
       }