clover: Fix build after clang r367864
authorJan Vesely <jan.vesely@rutgers.edu>
Tue, 6 Aug 2019 16:24:18 +0000 (12:24 -0400)
committerJan Vesely <jan.vesely@rutgers.edu>
Wed, 7 Aug 2019 03:33:55 +0000 (23:33 -0400)
v2: Drop special case of llvm-9
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Acked-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Aaron Watry <awatry@gmail.com>
src/gallium/state_trackers/clover/llvm/compat.hpp

index 0ecf622a9afdd78d053426decaa807545f1dc886..b040902fcfed95d778076719a59d05e44e804eba 100644 (file)
@@ -79,11 +79,17 @@ namespace clover {
 #endif
          }
 
-#if HAVE_LLVM >= 0x0500
+#if HAVE_LLVM >= 0x1000
+         const clang::InputKind ik_opencl = clang::Language::OpenCL;
+#elif HAVE_LLVM >= 0x0500
          const clang::InputKind ik_opencl = clang::InputKind::OpenCL;
-         const clang::LangStandard::Kind lang_opencl10 = clang::LangStandard::lang_opencl10;
 #else
          const clang::InputKind ik_opencl = clang::IK_OpenCL;
+#endif
+
+#if HAVE_LLVM >= 0x0500
+         const clang::LangStandard::Kind lang_opencl10 = clang::LangStandard::lang_opencl10;
+#else
          const clang::LangStandard::Kind lang_opencl10 = clang::LangStandard::lang_opencl;
 #endif