aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-16 19:46:33 +0000
committerChris Lattner <sabre@nondot.org>2004-10-16 19:46:33 +0000
commit6e758aee74a500c62796313689530241a4957cf9 (patch)
tree162ec0142b78a88bc97e31e7dfba02ca6eabac34 /lib
parent061718cba87ed59ad60264eb43dd974b14c77ba4 (diff)
downloadexternal_llvm-6e758aee74a500c62796313689530241a4957cf9.zip
external_llvm-6e758aee74a500c62796313689530241a4957cf9.tar.gz
external_llvm-6e758aee74a500c62796313689530241a4957cf9.tar.bz2
Kill the bogon that slipped into my buffer before I committed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17067 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-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 a874723..91aebc1 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/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<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());
}
}