From: Jan Vesely Date: Tue, 6 Aug 2019 16:24:18 +0000 (-0400) Subject: clover: Fix build after clang r367864 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b8269d0bbded7a42cd2de2b50d077cf12157d15;p=mesa.git clover: Fix build after clang r367864 v2: Drop special case of llvm-9 Signed-off-by: Jan Vesely Acked-by: Dieter Nützel Tested-by: Dieter Nützel Reviewed-by: Aaron Watry --- diff --git a/src/gallium/state_trackers/clover/llvm/compat.hpp b/src/gallium/state_trackers/clover/llvm/compat.hpp index 0ecf622a9af..b040902fcfe 100644 --- a/src/gallium/state_trackers/clover/llvm/compat.hpp +++ b/src/gallium/state_trackers/clover/llvm/compat.hpp @@ -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