[Mesa-dev] [PATCH] clover: Fix build after llvm r223802

Tom Stellard tom at stellard.net
Tue Dec 9 16:06:58 PST 2014


On Tue, Dec 09, 2014 at 05:42:42PM -0600, Aaron Watry wrote:
> Signed-off-by: Aaron Watry <awatry at gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
> ---
>  src/gallium/state_trackers/clover/llvm/invocation.cpp | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> index cda447d..5265d10 100644
> --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
> +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> @@ -281,7 +281,11 @@ namespace {
>        }
>  
>        for (unsigned i = 0; i < kernel_node->getNumOperands(); ++i) {
> +#if HAVE_LLVM >= 0x0306
> +         kernels.push_back(llvm::mdconst::dyn_extract<llvm::Function>(
> +#else
>           kernels.push_back(llvm::dyn_cast<llvm::Function>(
> +#endif
>                                      kernel_node->getOperand(i)->getOperand(0)));
>        }
>     }
> -- 
> 2.1.0
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list