clover: Fix build since clang r301442
authorJan Vesely <jan.vesely@rutgers.edu>
Thu, 27 Apr 2017 16:11:37 +0000 (12:11 -0400)
committerJan Vesely <jan.vesely@rutgers.edu>
Thu, 27 Apr 2017 16:52:25 +0000 (12:52 -0400)
v2: rename default_ik -> ik_opencl

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/llvm/compat.hpp
src/gallium/state_trackers/clover/llvm/invocation.cpp

index cee51b9dd1b26f8506ec500bbdc392dc47256a36..06d3b6ffe6bf5e050545450b84db213893df80e4 100644 (file)
@@ -70,8 +70,10 @@ namespace clover {
 
 #if HAVE_LLVM >= 0x0500
          const auto lang_as_offset = 0;
+         const clang::InputKind ik_opencl = clang::InputKind::OpenCL;
 #else
          const auto lang_as_offset = clang::LangAS::Offset;
+         const clang::InputKind ik_opencl = clang::IK_OpenCL;
 #endif
 
          inline void
index deebef5726c7250280aa5f67ffa5726e94a9ec42..6412377faabd524c83830284fe9ba56e0421c188 100644 (file)
@@ -126,7 +126,7 @@ namespace {
       c->getDiagnosticOpts().ShowCarets = false;
 
       compat::set_lang_defaults(c->getInvocation(), c->getLangOpts(),
-                                clang::IK_OpenCL, ::llvm::Triple(target.triple),
+                                compat::ik_opencl, ::llvm::Triple(target.triple),
                                 c->getPreprocessorOpts(),
                                 clang::LangStandard::lang_opencl11);