projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86aa33d
)
Teach GetBaseType() about BlockPointerTypes.
author
Ted Kremenek
<kremenek@apple.com>
Thu, 11 Oct 2012 20:58:14 +0000
(20:58 +0000)
committer
Ted Kremenek
<kremenek@apple.com>
Thu, 11 Oct 2012 20:58:14 +0000
(20:58 +0000)
llvm-svn: 165742
clang/lib/AST/DeclPrinter.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/DeclPrinter.cpp
b/clang/lib/AST/DeclPrinter.cpp
index
56fc8e1
..
6cd0458
100644
(file)
--- a/
clang/lib/AST/DeclPrinter.cpp
+++ b/
clang/lib/AST/DeclPrinter.cpp
@@
-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>())