r349949 - [Sema][NFC] Fix a Wimplicit-fallthrough warning in CheckSpecializationInstantiationRedecl
Bruno Ricci via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 21 12:38:07 PST 2018
Author: brunoricci
Date: Fri Dec 21 12:38:06 2018
New Revision: 349949
URL: http://llvm.org/viewvc/llvm-project?rev=349949&view=rev
Log:
[Sema][NFC] Fix a Wimplicit-fallthrough warning in CheckSpecializationInstantiationRedecl
All cases are covered so add an llvm_unreachable. NFC.
Modified:
cfe/trunk/lib/Sema/SemaTemplate.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplate.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplate.cpp?rev=349949&r1=349948&r2=349949&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplate.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplate.cpp Fri Dec 21 12:38:06 2018
@@ -7966,6 +7966,7 @@ Sema::CheckSpecializationInstantiationRe
HasNoEffect = true;
return false;
}
+ llvm_unreachable("Unexpected TemplateSpecializationKind!");
case TSK_ExplicitInstantiationDefinition:
switch (PrevTSK) {
More information about the cfe-commits
mailing list