Skip to content

Commit 5b2c9ed

Browse files
kastiglioneAnthonyLatsis
authored andcommitted
[lldb] Comment out Swift specific PCM validation
The Preprocessor's options were made `const` in llvm@277ab85. (cherry picked from commit e612892)
1 parent bdc63c2 commit 5b2c9ed

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9284,16 +9284,17 @@ bool SwiftASTContext::GetCompileUnitImportsImpl(
92849284
validate_pcm = true;
92859285
#endif
92869286
}
9287-
9288-
auto &pp_opts = m_clangimporter->getClangPreprocessor()
9289-
.getPreprocessorOpts();
9290-
pp_opts.DisablePCHOrModuleValidation =
9291-
validate_pcm ? clang::DisableValidationForModuleKind::None
9292-
: clang::DisableValidationForModuleKind::All;
9293-
pp_opts.ModulesCheckRelocated = validate_pcm;
9294-
9295-
LOG_PRINTF(GetLog(LLDBLog::Types), "PCM validation is %s",
9296-
validate_pcm ? "disabled" : "enabled");
9287+
9288+
const auto &pp_opts =
9289+
m_clangimporter->getClangPreprocessor().getPreprocessorOpts();
9290+
// rdar://155232969
9291+
// pp_opts.DisablePCHOrModuleValidation =
9292+
// validate_pcm ? clang::DisableValidationForModuleKind::None
9293+
// : clang::DisableValidationForModuleKind::All;
9294+
// pp_opts.ModulesCheckRelocated = validate_pcm;
9295+
9296+
if (!validate_pcm)
9297+
LOG_PRINTF(GetLog(LLDBLog::Types), "PCM validation cannot be disabled");
92979298
}
92989299

92999300
LOG_PRINTF(GetLog(LLDBLog::Types), "Importing dependencies of current CU");

0 commit comments

Comments
 (0)