From: Richard Smith Date: Thu, 30 May 2019 23:21:13 +0000 (+0000) Subject: Fix "fallthrough annotation in unreachable code" warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44d5e48d1d83168417a340d28a52c76fe79067ad;p=clang Fix "fallthrough annotation in unreachable code" warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362171 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index e0d43a780e..eac7c44c76 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -6971,7 +6971,7 @@ static bool handleFunctionTypeAttr(TypeProcessingState &state, ParsedAttr &attr, switch (Proto->getExceptionSpecType()) { case EST_None: llvm_unreachable("This doesn't have an exception spec!"); - LLVM_FALLTHROUGH; + case EST_DynamicNone: case EST_BasicNoexcept: case EST_NoexceptTrue: