[Clang] Fix -Wunused-variable
This commit is contained in:
parent
e1347d1977
commit
bf57f910ab
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user