From: Galina Kistanova Date: Thu, 8 Jun 2017 18:20:32 +0000 (+0000) Subject: Added llvm_unreachable to make sure the switch is always exhaustive. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d9c750bf7cb85c6e00dab61ee22d034e54ad82e;p=clang Added llvm_unreachable to make sure the switch is always exhaustive. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304997 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 341e0abc1c..1eea151a4e 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -7622,6 +7622,7 @@ Sema::CheckSpecializationInstantiationRedecl(SourceLocation NewLoc, return true; } + llvm_unreachable("The switch over PrevTSK must be exhaustive."); case TSK_ExplicitInstantiationDeclaration: switch (PrevTSK) {