1
0
Fork 0

clc: Fix createDiagnostics for LLVM-22

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13986
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Mary Guillemard <mary@mary.zone>
Reviewed-by: Janne Grunau <j@jannau.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37690>
This commit is contained in:
Karol Herbst 2025-10-03 19:19:20 +02:00 committed by Marge Bot
parent 9f67cc1510
commit 1db77d08e2

View file

@ -867,7 +867,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(