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:
parent
9f67cc1510
commit
1db77d08e2
1 changed files with 1 additions and 1 deletions
|
|
@ -867,7 +867,7 @@ clc_compile_to_llvm_module(LLVMContext &llvm_ctx,
|
||||||
c->getDiagnosticOpts().ShowCarets = false;
|
c->getDiagnosticOpts().ShowCarets = false;
|
||||||
|
|
||||||
c->createDiagnostics(
|
c->createDiagnostics(
|
||||||
#if LLVM_VERSION_MAJOR >= 20
|
#if LLVM_VERSION_MAJOR >= 20 && LLVM_VERSION_MAJOR < 22
|
||||||
*llvm::vfs::getRealFileSystem(),
|
*llvm::vfs::getRealFileSystem(),
|
||||||
#endif
|
#endif
|
||||||
new clang::TextDiagnosticPrinter(
|
new clang::TextDiagnosticPrinter(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue