From cd93d82ba9ec8cd8e4f54bbee16d7b47c542de71 Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Thu, 6 Nov 2014 11:46:41 -0500 Subject: [PATCH] clover: Fix build after llvm r221375 Reviewed-by: Tom Stellard Signed-off-by: Jan Vesely --- 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 e9538224bf6..3a4fcf0bc8b 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -282,7 +282,11 @@ namespace { for (unsigned i = 0; i < kernel_node->getNumOperands(); ++i) { kernels.push_back(llvm::dyn_cast( +#if HAVE_LLVM >= 0x0306 + kernel_node->getOperandAsMDNode(i)->getOperand(0))); +#else kernel_node->getOperand(i)->getOperand(0))); +#endif } } -- 2.30.2