r362171 - Fix "fallthrough annotation in unreachable code" warning.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Thu May 30 16:21:14 PDT 2019


Author: rsmith
Date: Thu May 30 16:21:13 2019
New Revision: 362171

URL: http://llvm.org/viewvc/llvm-project?rev=362171&view=rev
Log:
Fix "fallthrough annotation in unreachable code" warning.

Modified:
    cfe/trunk/lib/Sema/SemaType.cpp

Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=362171&r1=362170&r2=362171&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Thu May 30 16:21:13 2019
@@ -6971,7 +6971,7 @@ static bool handleFunctionTypeAttr(TypeP
       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:




More information about the cfe-commits mailing list