diff options
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Execution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 868bfbe5be..082823ade7 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/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) { |