Fix some test failures involving -ast-print.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72605 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/StmtPrinter.cpp b/lib/AST/StmtPrinter.cpp
index a427147..113cbb4 100644
--- a/lib/AST/StmtPrinter.cpp
+++ b/lib/AST/StmtPrinter.cpp
@@ -255,6 +255,11 @@
   if (TD)
     ++Begin;
 
+  if (Begin == End) {
+    PrintRawDecl(TD);
+    return;
+  }
+
   if (isa<TypedefDecl>(*Begin))
     OS << "typedef ";
   else if (VarDecl *V = dyn_cast<VarDecl>(*Begin)) {
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp
index e63e12b..f7eb41c 100644
--- a/lib/AST/Type.cpp
+++ b/lib/AST/Type.cpp
@@ -903,6 +903,16 @@
   case Record:
   case Enum:
   case Typedef:
+  case Complex:
+  case TypeOfExpr:
+  case TypeOf:
+  case TemplateTypeParm:
+  case TemplateSpecialization:
+  case QualifiedName:
+  case Typename:
+  case ObjCInterface:
+  case ObjCQualifiedInterface:
+  case ObjCQualifiedId:
     return true;
   default:
     return false;