Allow pointer indexing

llvm-svn: 1462
This commit is contained in:
Chris Lattner 2001-12-14 16:31:26 +00:00
parent b2b1b3d036
commit 7dc20864b6
1 changed files with 1 additions and 1 deletions

View File

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