[clang] [clang][deps] Skip slow `UNHASHED_CONTROL_BLOCK` records (PR #69975)
Ben Langmuir via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 23 15:00:52 PDT 2023
================
@@ -1212,9 +1212,12 @@ void ASTWriter::writeUnhashedControlBlock(Preprocessor &PP,
Record.clear();
}
+ const auto &HSOpts = PP.getHeaderSearchInfo().getHeaderSearchOpts();
+
// Diagnostic options.
const auto &Diags = Context.getDiagnostics();
const DiagnosticOptions &DiagOpts = Diags.getDiagnosticOptions();
+ if (!HSOpts.ModulesSkipDiagnosticOptions) {
----------------
benlangmuir wrote:
Now that we're doing this upstream we should re-indent this code.
https://github.com/llvm/llvm-project/pull/69975
More information about the cfe-commits
mailing list