1
0
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:
Chris Lattner 2001-12-14 16:31:26 +00:00
parent 43c92f9dbd
commit 831b4ac558

View File

@ -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");