Author: Aiden Grossman Date: 2026-03-20T16:34:51Z New Revision: bf57f910abbe6a848dcbaa720503b8e8f01d59e3
URL: https://github.com/llvm/llvm-project/commit/bf57f910abbe6a848dcbaa720503b8e8f01d59e3 DIFF: https://github.com/llvm/llvm-project/commit/bf57f910abbe6a848dcbaa720503b8e8f01d59e3.diff LOG: [Clang] Fix -Wunused-variable Added: Modified: clang/lib/Serialization/ASTReader.cpp Removed: ################################################################################ diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index 03b1b02859b81..1aa063472e0aa 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -6339,7 +6339,8 @@ llvm::Error ASTReader::ReadSubmoduleBlock(ModuleFile &F, "too many submodules"); if (!ParentModule) { - if (const ModuleFileKey *CurFileKey = CurrentModule->getASTFileKey()) { + if ([[maybe_unused]] const ModuleFileKey *CurFileKey = + CurrentModule->getASTFileKey()) { // Don't emit module relocation error if we have -fno-validate-pch if (!bool(PP.getPreprocessorOpts().DisablePCHOrModuleValidation & DisableValidationForModuleKind::Module)) { _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
