From 25db8729dc53b60ee0caade5e797e99d6ad13fa3 Mon Sep 17 00:00:00 2001 From: Aaron Watry Date: Tue, 9 Dec 2014 19:28:50 -0600 Subject: clover: Fix build after llvm r223802 Signed-off-by: Aaron Watry Reviewed-by: Tom Stellard --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/state_trackers') diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index cda447d565d..5265d10330d 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( +#else kernels.push_back(llvm::dyn_cast( +#endif kernel_node->getOperand(i)->getOperand(0))); } } -- cgit v1.2.3