From: Reid Kleckner Date: Thu, 1 Nov 2018 18:53:02 +0000 (+0000) Subject: Add LLVM_FALLTHROUGH annotation after switch X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1628e42d73ac02882d0d5929523906c01316f00;p=clang Add LLVM_FALLTHROUGH annotation after switch This silences a -Wimplicit-fallthrough warning from clang. GCC does not appear to warn when the case body ends in a switch. This is a somewhat surprising but intended fallthrough that I pulled out from my mechanical patch. The code intends to handle 'Yi' and related constraints as the 'x' constraint. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345873 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets/X86.cpp b/lib/Basic/Targets/X86.cpp index 467eb55f44..c7f84e5266 100644 --- a/lib/Basic/Targets/X86.cpp +++ b/lib/Basic/Targets/X86.cpp @@ -1681,6 +1681,7 @@ bool X86TargetInfo::validateOperandSize(StringRef Constraint, return false; break; } + LLVM_FALLTHROUGH; case 'v': case 'x': if (SSELevel >= AVX512F)