[Mesa-dev] [PATCH] clover: Fix build against clang SVN >= r299965
Jan Vesely
jan.vesely at rutgers.edu
Wed Apr 12 15:23:32 UTC 2017
On Wed, 2017-04-12 at 17:18 +0900, Michel Dänzer wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> clang::LangAS::Offset is gone, the behaviour is as if it was 0.
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
works fine on Turks
Reviewed-and-Tested-by: Jan Vesely <jan.vesely at rutgers.edu>
Jan
> ---
> src/gallium/state_trackers/clover/llvm/codegen/common.cpp | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/state_trackers/clover/llvm/codegen/common.cpp b/src/gallium/state_trackers/clover/llvm/codegen/common.cpp
> index 13ccd591c1..9c81cc5acb 100644
> --- a/src/gallium/state_trackers/clover/llvm/codegen/common.cpp
> +++ b/src/gallium/state_trackers/clover/llvm/codegen/common.cpp
> @@ -129,7 +129,10 @@ namespace {
> cast<::llvm::PointerType>(actual_type)->getAddressSpace();
>
> if (address_space == address_spaces[clang::LangAS::opencl_local
> - - clang::LangAS::Offset]) {
> +#if HAVE_LLVM < 0x0500
> + - clang::LangAS::Offset
> +#endif
> + ]) {
> args.emplace_back(module::argument::local, arg_api_size,
> target_size, target_align,
> module::argument::zero_ext);
-------------- 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/20170412/b77b8771/attachment.sig>
More information about the mesa-dev
mailing list