[clang] e9475a2 - [Sema] Fix MSVC "attribute is not recognized" warning (NFC)
Yang Fan via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 26 01:28:54 PST 2021
Author: Yang Fan
Date: 2021-02-26T17:28:24+08:00
New Revision: e9475a276267f1bc74d9624fc797c7a754b5b90b
URL: https://github.com/llvm/llvm-project/commit/e9475a276267f1bc74d9624fc797c7a754b5b90b
DIFF: https://github.com/llvm/llvm-project/commit/e9475a276267f1bc74d9624fc797c7a754b5b90b.diff
LOG: [Sema] Fix MSVC "attribute is not recognized" warning (NFC)
MSVC warning:
```
\llvm-project\clang\lib\Sema\SemaChecking.cpp(10323): warning C5030: attribute 'clang::fallthrough' is not recognized
```
Added:
Modified:
clang/lib/Sema/SemaChecking.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index f69bdf97aa8d..f67cba189344 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -10320,7 +10320,7 @@ void CheckFreeArgumentsCast(Sema &S, const std::string &CalleeName,
case clang::CK_BitCast:
if (!Cast->getSubExpr()->getType()->isFunctionPointerType())
return;
- [[clang::fallthrough]];
+ LLVM_FALLTHROUGH;
case clang::CK_IntegralToPointer:
case clang::CK_FunctionToPointerDecay:
OS << '\'';
More information about the cfe-commits
mailing list