Teach GetBaseType() about BlockPointerTypes.

llvm-svn: 165742
This commit is contained in:
Ted Kremenek 2012-10-11 20:58:14 +00:00
parent 86aa33d50e
commit fa0a0b6628
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ static QualType GetBaseType(QualType T) {
break;
else if (const PointerType* PTy = BaseType->getAs<PointerType>())
BaseType = PTy->getPointeeType();
else if (const BlockPointerType *BPy = BaseType->getAs<BlockPointerType>())
BaseType = BPy->getPointeeType();
else if (const ArrayType* ATy = dyn_cast<ArrayType>(BaseType))
BaseType = ATy->getElementType();
else if (const FunctionType* FTy = BaseType->getAs<FunctionType>())