diff options
author | Chris Lattner <sabre@nondot.org> | 2001-12-14 16:31:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-12-14 16:31:26 +0000 |
commit | 5618cb60c212c0d26fb5a4120c460ee1ae9ef15e (patch) | |
tree | bb9ca09564d3e3621dfced30b666b66d710a916f | |
parent | 90865150e4f45f8c7da9b40cba3f3a815d304ab4 (diff) |
Allow pointer indexing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1462 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/SparcV9/SparcV9InstrSelection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index c7b8ecb351..21212199a8 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<SequentialType>(ptrType->getElementType())); assert(arrayOffsetVal != NULL && "Expect to be given Value* for array offsets"); |