From cea965eee5b9a41a4732736c707eb1d36cd6bb5b Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Fri, 3 Oct 2025 19:19:20 +0200 Subject: [PATCH] clc: Fix createDiagnostics for LLVM-22 Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13986 Reviewed-by: Alyssa Rosenzweig Reviewed-by: Mary Guillemard Reviewed-by: Janne Grunau Part-of: (cherry picked from commit 1db77d08e22e676bbc34e411313445868e9fd836) --- .pick_status.json | 2 +- src/compiler/clc/clc_helpers.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(