]> granicus.if.org Git - clang/commitdiff
Fix "fallthrough annotation in unreachable code" warning.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 30 May 2019 23:21:13 +0000 (23:21 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 30 May 2019 23:21:13 +0000 (23:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362171 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaType.cpp

index e0d43a780e7942d5eadb867aac250600b8f1796c..eac7c44c76ae446a26b7cdf81acd3a77ef2ac00b 100644 (file)
@@ -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: