Fix a -ast-dump crash.

llvm-svn: 161472
This commit is contained in:
Eli Friedman 2012-08-08 03:47:15 +00:00
parent 352abc19a5
commit 70bc6e6019
1 changed files with 2 additions and 0 deletions

View File

@ -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!");
}