Allow pointer indexing
llvm-svn: 1462
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
index c7b8ecb..2121219 100644
--- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
+++ b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
@@ -839,7 +839,7 @@
// 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");