summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-11 01:21:35 +0000
committerChris Lattner <sabre@nondot.org>2002-09-11 01:21:35 +0000
commite314bf5264a5b57843b3a181c809de9e0d1426cb (patch)
tree887a3a16818fdb0122bd181ef5264d5ad0da4741 /llvm/lib/ExecutionEngine/Interpreter
parent136dab7d86c77c69aae948501065432e8b9b1ced (diff)
downloadbcm5719-llvm-e314bf5264a5b57843b3a181c809de9e0d1426cb.tar.gz
bcm5719-llvm-e314bf5264a5b57843b3a181c809de9e0d1426cb.zip
- Change getelementptr instruction to use long indexes instead of uint
indexes for sequential types. llvm-svn: 3683
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Execution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
index 868bfbe5bec..082823ade7b 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -822,7 +822,7 @@ static GenericValue executeGEPOperation(Value *Ptr, User::op_iterator I,
} else if (const SequentialType *ST = cast<SequentialType>(Ty)) {
// Get the index number for the array... which must be uint type...
- assert((*I)->getType() == Type::UIntTy);
+ assert((*I)->getType() == Type::LongTy);
unsigned Idx = getOperandValue(*I, SF).UIntVal;
if (const ArrayType *AT = dyn_cast<ArrayType>(ST))
if (Idx >= AT->getNumElements() && ArrayChecksEnabled) {
OpenPOWER on IntegriCloud