summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover
diff options
context:
space:
mode:
authorJan Vesely <[email protected]>2014-11-06 11:46:41 -0500
committerTom Stellard <[email protected]>2014-11-06 11:39:36 -0500
commitcd93d82ba9ec8cd8e4f54bbee16d7b47c542de71 (patch)
tree852d6b62299b95bad5ba4005b76fb497d6afec92 /src/gallium/state_trackers/clover
parentba0bb4227e5d32619e83765f5967a069766996af (diff)
clover: Fix build after llvm r221375
Reviewed-by: Tom Stellard <[email protected]> Signed-off-by: Jan Vesely <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover')
-rw-r--r--src/gallium/state_trackers/clover/llvm/invocation.cpp4
1 files changed, 4 insertions, 0 deletions
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<llvm::Function>(
+#if HAVE_LLVM >= 0x0306
+ kernel_node->getOperandAsMDNode(i)->getOperand(0)));
+#else
kernel_node->getOperand(i)->getOperand(0)));
+#endif
}
}