diff --git a/src/compiler/clc/clc_helpers.cpp b/src/compiler/clc/clc_helpers.cpp index 53ccb1ebca3..caee1fd81f7 100644 --- a/src/compiler/clc/clc_helpers.cpp +++ b/src/compiler/clc/clc_helpers.cpp @@ -773,6 +773,9 @@ clc_compile_to_llvm_module(LLVMContext &llvm_ctx, "-fdeclare-opencl-builtins", #else "-finclude-default-header", +#endif +#if LLVM_VERSION_MAJOR >= 15 + "-no-opaque-pointers", #endif // Add a default CL compiler version. Clang will pick the last one specified // on the command line, so the app can override this one.