Update LLVM (#5605)

Some updates required for
https://github.com/llvm/llvm-project/pull/139584.

Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
josh11bandJosh L authored and GitHub committed 2025-06-04 00:43:40 +00:00
1 parent 806bee1063
commit 09ca0b8308
4 files changed
+14 -14

No files matched your search

+5 -5
View File
@@ -87,11 +87,11 @@ class CarbonClangDiagnosticConsumer : public clang::DiagnosticConsumer {
// TODO: Consider allowing setting `LangOptions` or use
// `ASTContext::getLangOptions()`.
clang::LangOptions lang_options;
clang::TextDiagnostic text_diagnostic(
diagnostics_stream, lang_options,
// TODO: Consider allowing setting `DiagnosticOptions` or use
// `ASTUnit::getDiagnostics().::getLangOptions().getDiagnosticOptions()`.
new clang::DiagnosticOptions());
// TODO: Consider allowing setting `DiagnosticOptions` or use
// `ASTUnit::getDiagnostics().getLangOptions().getDiagnosticOptions()`.
clang::DiagnosticOptions diagnostic_options;
clang::TextDiagnostic text_diagnostic(diagnostics_stream, lang_options,
diagnostic_options);
text_diagnostic.emitDiagnostic(
clang::FullSourceLoc(info.getLocation(), info.getSourceManager()),
diag_level, message, info.getRanges(), info.getFixItHints());