[Mesa-dev] [PATCH 1/1] clover: Fix build since clang r301442
Jan Vesely
jan.vesely at rutgers.edu
Thu Apr 27 16:57:10 UTC 2017
On Thu, 2017-04-27 at 09:37 -0700, Francisco Jerez wrote:
> Jan Vesely <jan.vesely at rutgers.edu> writes:
>
> > Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
> > ---
> > src/gallium/state_trackers/clover/llvm/compat.hpp | 2 ++
> > src/gallium/state_trackers/clover/llvm/invocation.cpp | 2 +-
> > 2 files changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/src/gallium/state_trackers/clover/llvm/compat.hpp b/src/gallium/state_trackers/clover/llvm/compat.hpp
> > index cee51b9..54ac579 100644
> > --- a/src/gallium/state_trackers/clover/llvm/compat.hpp
> > +++ b/src/gallium/state_trackers/clover/llvm/compat.hpp
> > @@ -70,8 +70,10 @@ namespace clover {
> >
> > #if HAVE_LLVM >= 0x0500
> > const auto lang_as_offset = 0;
> > + const clang::InputKind default_ik = clang::InputKind::OpenCL;
> > #else
> > const auto lang_as_offset = clang::LangAS::Offset;
> > + const clang::InputKind default_ik = clang::IK_OpenCL;
>
> "ik_opencl" seems like a better name for this, with that fixed:
>
> Reviewed-by: Francisco Jerez <currojerez at riseup.net>
thanks, fixed locally and pushed.
Jan
>
> > #endif
> >
> > inline void
> > diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> > index deebef5..c33580e 100644
> > --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
> > +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> > @@ -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::default_ik, ::llvm::Triple(target.triple),
> > c->getPreprocessorOpts(),
> > clang::LangStandard::lang_opencl11);
> >
> > --
> > 2.9.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170427/7f2f4e4a/attachment-0001.sig>
More information about the mesa-dev
mailing list