mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Allow pointer indexing
llvm-svn: 1462
This commit is contained in:
parent
43c92f9dbd
commit
831b4ac558
@ -839,7 +839,7 @@ SetMemOperands_Internal(MachineInstr* minstr,
|
||||
// It must be an array ref. Check if the offset is a constant,
|
||||
// and that the indexing has been lowered to a single offset.
|
||||
//
|
||||
assert(ptrType->getElementType()->isArrayType());
|
||||
assert(isa<SequentialType>(ptrType->getElementType()));
|
||||
assert(arrayOffsetVal != NULL
|
||||
&& "Expect to be given Value* for array offsets");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user