From: Bruno Ricci Date: Sun, 17 Feb 2019 19:18:38 +0000 (+0000) Subject: [NFC] Add a llvm_unreachable to silence a warning in SubstObjCTypeArgsVisitor X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f7140431d17527cd31d8d0537e5995114167a71;p=clang [NFC] Add a llvm_unreachable to silence a warning in SubstObjCTypeArgsVisitor All cases in the switch are covered. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354233 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index aca82e2e63..072b0e4d72 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -1184,6 +1184,7 @@ struct SubstObjCTypeArgsVisitor return Ctx.getObjCObjectPointerType(resultTy); } } + llvm_unreachable("Unexpected ObjCSubstitutionContext!"); } QualType VisitFunctionType(const FunctionType *funcType) {