summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-12-14 16:31:26 +0000
committerChris Lattner <sabre@nondot.org>2001-12-14 16:31:26 +0000
commit7dc20864b6eed71c15120c8b9531a26b02a5ab1c (patch)
tree8e48e6c85da457c7c24dabf5c640f178d30404f2 /llvm/lib/Target/Sparc
parentb2b1b3d0360d702ebacbc6677d05853453f2de2b (diff)
downloadbcm5719-llvm-7dc20864b6eed71c15120c8b9531a26b02a5ab1c.tar.gz
bcm5719-llvm-7dc20864b6eed71c15120c8b9531a26b02a5ab1c.zip
Allow pointer indexing
llvm-svn: 1462
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r--llvm/lib/Target/Sparc/SparcInstrSelection.cpp2
1 files changed, 1 insertions, 1 deletions
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<SequentialType>(ptrType->getElementType()));
assert(arrayOffsetVal != NULL
&& "Expect to be given Value* for array offsets");
OpenPOWER on IntegriCloud