[Mesa-dev] [PATCH 1/1] clover: Fix build after llvm r221375
Jan Vesely
jan.vesely at rutgers.edu
Thu Nov 6 08:46:41 PST 2014
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
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 e953822..3a4fcf0 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
}
}
--
1.9.3
More information about the mesa-dev
mailing list