Delete some unreachable AST printing code.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 9 Aug 2018 00:44:49 +0000 (00:44 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 9 Aug 2018 00:44:49 +0000 (00:44 +0000)
llvm-svn: 339304

clang/lib/AST/TypePrinter.cpp

index e032c31..1acb4ca 100644 (file)
@@ -1427,22 +1427,6 @@ void TypePrinter::printAttributedAfter(const AttributedType *T,
                              ->getExtInfo().getProducesResult())
     return;
 
-  // Print nullability type specifiers that occur after
-  if (T->getAttrKind() == AttributedType::attr_nonnull ||
-      T->getAttrKind() == AttributedType::attr_nullable ||
-      T->getAttrKind() == AttributedType::attr_null_unspecified) {
-    if (T->getAttrKind() == AttributedType::attr_nonnull)
-      OS << " _Nonnull";
-    else if (T->getAttrKind() == AttributedType::attr_nullable)
-      OS << " _Nullable";
-    else if (T->getAttrKind() == AttributedType::attr_null_unspecified)
-      OS << " _Null_unspecified";
-    else
-      llvm_unreachable("unhandled nullability");
-
-    return;
-  }
-
   if (T->getAttrKind() == AttributedType::attr_lifetimebound) {
     OS << " [[clang::lifetimebound]]";
     return;