From 0d9c750bf7cb85c6e00dab61ee22d034e54ad82e Mon Sep 17 00:00:00 2001 From: Galina Kistanova Date: Thu, 8 Jun 2017 18:20:32 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaTemplate.cpp | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.40.0