[NFC] Add a llvm_unreachable to silence a warning in SubstObjCTypeArgsVisitor
authorBruno Ricci <riccibrun@gmail.com>
Sun, 17 Feb 2019 19:18:38 +0000 (19:18 +0000)
committerBruno Ricci <riccibrun@gmail.com>
Sun, 17 Feb 2019 19:18:38 +0000 (19:18 +0000)
All cases in the switch are covered. NFC.

llvm-svn: 354233

clang/lib/AST/Type.cpp

index aca82e2..072b0e4 100644 (file)
@@ -1184,6 +1184,7 @@ struct SubstObjCTypeArgsVisitor
       return Ctx.getObjCObjectPointerType(resultTy);
       }
     }
+    llvm_unreachable("Unexpected ObjCSubstitutionContext!");
   }
 
   QualType VisitFunctionType(const FunctionType *funcType) {