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: _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits