]> granicus.if.org Git - clang/commitdiff
Added llvm_unreachable to make sure the switch is always exhaustive.
authorGalina Kistanova <gkistanova@gmail.com>
Thu, 8 Jun 2017 18:20:32 +0000 (18:20 +0000)
committerGalina Kistanova <gkistanova@gmail.com>
Thu, 8 Jun 2017 18:20:32 +0000 (18:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304997 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaTemplate.cpp

index 341e0abc1c34f32296658652f4c36e21115b26e3..1eea151a4ec8b7b44374d2f82bbcc5824bd3c145 100644 (file)
@@ -7622,6 +7622,7 @@ Sema::CheckSpecializationInstantiationRedecl(SourceLocation NewLoc,
 
       return true;
     }
+    llvm_unreachable("The switch over PrevTSK must be exhaustive.");
 
   case TSK_ExplicitInstantiationDeclaration:
     switch (PrevTSK) {