[cfe-commits] r165742 - /cfe/trunk/lib/AST/DeclPrinter.cpp
Ted Kremenek
kremenek at apple.com
Thu Oct 11 13:58:15 PDT 2012
Author: kremenek
Date: Thu Oct 11 15:58:14 2012
New Revision: 165742
URL: http://llvm.org/viewvc/llvm-project?rev=165742&view=rev
Log:
Teach GetBaseType() about BlockPointerTypes.
Modified:
cfe/trunk/lib/AST/DeclPrinter.cpp
Modified: cfe/trunk/lib/AST/DeclPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclPrinter.cpp?rev=165742&r1=165741&r2=165742&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclPrinter.cpp (original)
+++ cfe/trunk/lib/AST/DeclPrinter.cpp Thu Oct 11 15:58:14 2012
@@ -105,6 +105,8 @@
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>())
More information about the cfe-commits
mailing list