mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Allow pointer indexing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1462 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
90865150e4
commit
5618cb60c2
@ -839,7 +839,7 @@ SetMemOperands_Internal(MachineInstr* minstr,
|
|||||||
// It must be an array ref. Check if the offset is a constant,
|
// It must be an array ref. Check if the offset is a constant,
|
||||||
// and that the indexing has been lowered to a single offset.
|
// and that the indexing has been lowered to a single offset.
|
||||||
//
|
//
|
||||||
assert(ptrType->getElementType()->isArrayType());
|
assert(isa<SequentialType>(ptrType->getElementType()));
|
||||||
assert(arrayOffsetVal != NULL
|
assert(arrayOffsetVal != NULL
|
||||||
&& "Expect to be given Value* for array offsets");
|
&& "Expect to be given Value* for array offsets");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user