]> granicus.if.org Git - clang/commitdiff
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354233 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Type.cpp

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