aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-08-08 09:12:46 -0700
committerFangrui Song <i@maskray.me>2022-08-08 09:12:46 -0700
commit3f18f7c0072b642f5fe88d2fb7bb8ccf69a6c6f5 (patch)
tree2ed06fc833ad0fee4f6de6904ee1b828c14a7d48 /clang/lib/Frontend/CompilerInstance.cpp
parent521a5c11acb45fe4672ed63e3f6aa1f22b0e9fbe (diff)
downloadllvm-3f18f7c0072b642f5fe88d2fb7bb8ccf69a6c6f5.zip
llvm-3f18f7c0072b642f5fe88d2fb7bb8ccf69a6c6f5.tar.gz
llvm-3f18f7c0072b642f5fe88d2fb7bb8ccf69a6c6f5.tar.bz2
[clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC
With C++17 there is no Clang pedantic warning or MSVC C5051. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D131346
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 51c7bc2..e3b5447 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -1441,7 +1441,7 @@ static bool compileModuleAndReadASTBehindLock(
<< Module->Name << Locked.getErrorMessage();
// Clear out any potential leftover.
Locked.unsafeRemoveLockFile();
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case llvm::LockFileManager::LFS_Owned:
// We're responsible for building the module ourselves.
return compileModuleAndReadASTImpl(ImportingInstance, ImportLoc,
@@ -1879,7 +1879,7 @@ ModuleLoadResult CompilerInstance::findOrCompileModuleAndReadAST(
diag::warn_module_config_mismatch)
<< ModuleFilename;
// Fall through to error out.
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case ASTReader::VersionMismatch:
case ASTReader::HadErrors:
ModuleLoader::HadFatalFailure = true;