diff --git a/src/compiler/clc/clc_helpers.cpp b/src/compiler/clc/clc_helpers.cpp index b144302476d..65acb717f5a 100644 --- a/src/compiler/clc/clc_helpers.cpp +++ b/src/compiler/clc/clc_helpers.cpp @@ -783,7 +783,7 @@ clc_compile_to_llvm_module(LLVMContext &llvm_ctx, #else "-finclude-default-header", #endif -#if LLVM_VERSION_MAJOR >= 15 +#if LLVM_VERSION_MAJOR >= 15 && LLVM_VERSION_MAJOR < 17 "-no-opaque-pointers", #endif // Add a default CL compiler version. Clang will pick the last one specified