From 5618cb60c212c0d26fb5a4120c460ee1ae9ef15e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 14 Dec 2001 16:31:26 +0000 Subject: [PATCH] Allow pointer indexing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1462 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/SparcV9/SparcV9InstrSelection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index c7b8ecb3512..21212199a86 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.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");