mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Support getelementptr instructions which use uint's to index into structure
types and can have arbitrary 32- and 64-bit integer types indexing into sequential types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12653 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -350,7 +350,8 @@ void GraphBuilder::visitGetElementPtrInst(User &GEP) {
|
||||
#if 0
|
||||
// Handle the pointer index specially...
|
||||
if (GEP.getNumOperands() > 1 &&
|
||||
GEP.getOperand(1) != ConstantSInt::getNullValue(Type::LongTy)) {
|
||||
(!isa<Constant>(GEP.getOperand(1)) ||
|
||||
!cast<Constant>(GEP.getOperand(1))->isNullValue())) {
|
||||
|
||||
// If we already know this is an array being accessed, don't do anything...
|
||||
if (!TopTypeRec.isArray) {
|
||||
|
Reference in New Issue
Block a user