Allow pointer indexing
authorChris Lattner <sabre@nondot.org>
Fri, 14 Dec 2001 16:31:26 +0000 (16:31 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 14 Dec 2001 16:31:26 +0000 (16:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1462 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9InstrSelection.cpp

index c7b8ecb351218842ae113283aeae906e057e94e2..21212199a86254d45f4b4f748b51d77131a72c61 100644 (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");