summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
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
commit684c5c6587cd75689169d0fd4e8ce9db88676550 (patch)
tree285876ad0dba9381cb1ba5f0593078cf376d37e3 /llvm/lib/Transforms
parent6580e09fef3c0feddb6e9270d9b3d7f5f919fa34 (diff)
downloadbcm5719-llvm-684c5c6587cd75689169d0fd4e8ce9db88676550.tar.gz
bcm5719-llvm-684c5c6587cd75689169d0fd4e8ce9db88676550.zip
Kill the bogon that slipped into my buffer before I committed.
llvm-svn: 17067
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
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<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());
}
}
OpenPOWER on IntegriCloud