From 7dc20864b6eed71c15120c8b9531a26b02a5ab1c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 14 Dec 2001 16:31:26 +0000 Subject: Allow pointer indexing llvm-svn: 1462 --- llvm/lib/Target/Sparc/SparcInstrSelection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/Sparc') diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp index c7b8ecb3512..21212199a86 100644 --- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp @@ -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(ptrType->getElementType())); assert(arrayOffsetVal != NULL && "Expect to be given Value* for array offsets"); -- cgit v1.2.3