From 44d5e48d1d83168417a340d28a52c76fe79067ad Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 30 May 2019 23:21:13 +0000 Subject: Fix "fallthrough annotation in unreachable code" warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362171 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaType.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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: -- cgit v1.2.1