amd/llvm: fix build with LLVM 18

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25388>
This commit is contained in:
Marek Olšák
2023-09-25 15:57:33 -04:00
committed by Marge Bot
parent 6060b656f8
commit f79617fe80
@@ -366,7 +366,11 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
builder.setEngineKind(EngineKind::JIT)
.setErrorStr(&Error)
.setTargetOptions(options)
#if LLVM_VERSION_MAJOR >= 18
.setOptLevel((CodeGenOptLevel)OptLevel);
#else
.setOptLevel((CodeGenOpt::Level)OptLevel);
#endif
#if DETECT_OS_WINDOWS
/*