Skip to content

Commit 61a2c9a

Browse files
committed
Update
1 parent 99e1989 commit 61a2c9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang-tools-extra/clangd/ModulesBuilder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ bool IsModuleFileUpToDate(PathRef ModuleFilePath,
136136
HSOpts->ForceCheckCXX20ModulesInputFiles = true;
137137
HSOpts->ValidateASTInputFilesContent = true;
138138

139+
clang::clangd::IgnoreDiagnostics IgnoreDiags;
139140
IntrusiveRefCntPtr<DiagnosticsEngine> Diags =
140-
CompilerInstance::createDiagnostics(new DiagnosticOptions());
141+
CompilerInstance::createDiagnostics(new DiagnosticOptions, &D, /*ShouldOwnClient=*/false);
141142

142143
LangOptions LangOpts;
143144
LangOpts.SkipODRCheckInGMF = true;

0 commit comments

Comments
 (0)