diff --git a/.pick_status.json b/.pick_status.json index c5551954bdc..df97da62a2f 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -5434,7 +5434,7 @@ "description": "clc: Fix createDiagnostics for LLVM-22", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/compiler/clc/clc_helpers.cpp b/src/compiler/clc/clc_helpers.cpp index 0bfc929b5b9..746951cd968 100644 --- a/src/compiler/clc/clc_helpers.cpp +++ b/src/compiler/clc/clc_helpers.cpp @@ -866,7 +866,7 @@ clc_compile_to_llvm_module(LLVMContext &llvm_ctx, c->getDiagnosticOpts().ShowCarets = false; c->createDiagnostics( -#if LLVM_VERSION_MAJOR >= 20 +#if LLVM_VERSION_MAJOR >= 20 && LLVM_VERSION_MAJOR < 22 *llvm::vfs::getRealFileSystem(), #endif new clang::TextDiagnosticPrinter(