forked from OSchip/llvm-project
Teach GetBaseType() about BlockPointerTypes.
llvm-svn: 165742
This commit is contained in:
parent
86aa33d50e
commit
fa0a0b6628
|
@ -105,6 +105,8 @@ static QualType GetBaseType(QualType T) {
|
||||||
break;
|
break;
|
||||||
else if (const PointerType* PTy = BaseType->getAs<PointerType>())
|
else if (const PointerType* PTy = BaseType->getAs<PointerType>())
|
||||||
BaseType = PTy->getPointeeType();
|
BaseType = PTy->getPointeeType();
|
||||||
|
else if (const BlockPointerType *BPy = BaseType->getAs<BlockPointerType>())
|
||||||
|
BaseType = BPy->getPointeeType();
|
||||||
else if (const ArrayType* ATy = dyn_cast<ArrayType>(BaseType))
|
else if (const ArrayType* ATy = dyn_cast<ArrayType>(BaseType))
|
||||||
BaseType = ATy->getElementType();
|
BaseType = ATy->getElementType();
|
||||||
else if (const FunctionType* FTy = BaseType->getAs<FunctionType>())
|
else if (const FunctionType* FTy = BaseType->getAs<FunctionType>())
|
||||||
|
|
Loading…
Reference in New Issue