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:
352abc1
)
Fix a -ast-dump crash.
author
Eli Friedman
<eli.friedman@gmail.com>
Wed, 8 Aug 2012 03:47:15 +0000
(
03:47
+0000)
committer
Eli Friedman
<eli.friedman@gmail.com>
Wed, 8 Aug 2012 03:47:15 +0000
(
03:47
+0000)
llvm-svn: 161472
clang/lib/AST/DeclPrinter.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/DeclPrinter.cpp
b/clang/lib/AST/DeclPrinter.cpp
index
fe8f829
..
8e00e5a
100644
(file)
--- a/
clang/lib/AST/DeclPrinter.cpp
+++ b/
clang/lib/AST/DeclPrinter.cpp
@@
-114,6
+114,8
@@
static QualType GetBaseType(QualType T) {
BaseType = FTy->getResultType();
else if (const VectorType *VTy = BaseType->getAs<VectorType>())
BaseType = VTy->getElementType();
+ else if (const ReferenceType *RTy = BaseType->getAs<ReferenceType>())
+ BaseType = RTy->getPointeeType();
else
llvm_unreachable("Unknown declarator!");
}