From 684c5c6587cd75689169d0fd4e8ce9db88676550 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 16 Oct 2004 19:46:33 +0000 Subject: Kill the bogon that slipped into my buffer before I committed. llvm-svn: 17067 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index a874723b541..91aebc1efdb 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -4031,7 +4031,7 @@ bool InstCombiner::runOnFunction(Function &F) { uint64_t Offset = TD->getIndexedOffset(I->getOperand(0)->getType(), std::vector(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()); } } -- cgit v1.2.3