File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -314,12 +314,14 @@ class Pointer {
314
314
// / Returns the type of the innermost field.
315
315
QualType getType () const {
316
316
if (inPrimitiveArray () && Offset != asBlockPointer ().Base ) {
317
- // Unfortunately, complex types are not array types in clang, but they are
318
- // for us.
317
+ // Unfortunately, complex and vector types are not array types in clang,
318
+ // but they are for us.
319
319
if (const auto *AT = getFieldDesc ()->getType ()->getAsArrayTypeUnsafe ())
320
320
return AT->getElementType ();
321
321
if (const auto *CT = getFieldDesc ()->getType ()->getAs <ComplexType>())
322
322
return CT->getElementType ();
323
+ if (const auto *CT = getFieldDesc ()->getType ()->getAs <VectorType>())
324
+ return CT->getElementType ();
323
325
}
324
326
return getFieldDesc ()->getType ();
325
327
}
You can’t perform that action at this time.
0 commit comments