mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
* Fix a bug that was causing lli to misrun:
test/Regression/Transforms/DecomposeMultiDimRefs/mixedindices.c * Eliminate unneccesary #include git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3712 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e87e1c9aa9
commit
e8b3e9b2e1
@ -823,7 +823,7 @@ static GenericValue executeGEPOperation(Value *Ptr, User::op_iterator I,
|
||||
|
||||
// Get the index number for the array... which must be uint type...
|
||||
assert((*I)->getType() == Type::LongTy);
|
||||
unsigned Idx = getOperandValue(*I, SF).UIntVal;
|
||||
unsigned Idx = getOperandValue(*I, SF).LongVal;
|
||||
if (const ArrayType *AT = dyn_cast<ArrayType>(ST))
|
||||
if (Idx >= AT->getNumElements() && ArrayChecksEnabled) {
|
||||
cerr << "Out of range memory access to element #" << Idx
|
||||
|
@ -14,7 +14,6 @@
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include <map>
|
||||
#include <dlfcn.h>
|
||||
#include <iostream>
|
||||
#include <link.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
|
Loading…
Reference in New Issue
Block a user