From 073f3f1609cd0dbadc9923cf919521e1b2c5b2c3 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 30 May 2019 23:21:13 +0000 Subject: [PATCH] Fix "fallthrough annotation in unreachable code" warning. llvm-svn: 362171 --- clang/lib/Sema/SemaType.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp index e0d43a7..eac7c44 100644 --- a/clang/lib/Sema/SemaType.cpp +++ b/clang/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: -- 2.7.4