summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2017-05-05 14:32:18 +0800
committerYang Rong <rong.r.yang@intel.com>2017-06-09 19:19:09 +0800
commitb8fe58d5e60d98b2958b0a8825cc1be3ec621666 (patch)
tree7bf68330ff1bb8299bfa356adcbbe7bb21199939 /src
parentc23b8d7dc68d33b3efb0843a089e99ce39f6817f (diff)
Runtime: Fix a mssing llvm version marco for LLVM40+
Found a missing macro that need change to support LLVM40+. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/cl_extensions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_extensions.c b/src/cl_extensions.c
index a3c71ca4..d49d202f 100644
--- a/src/cl_extensions.c
+++ b/src/cl_extensions.c
@@ -42,7 +42,7 @@ void check_opt1_extension(cl_extensions_t *extensions)
{
if (id == EXT_ID(khr_icd))
extensions->extensions[id].base.ext_enabled = 1;
-#if LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 5
+#if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 35
if (id == EXT_ID(khr_spir))
extensions->extensions[id].base.ext_enabled = 1;
#endif