summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Watry <[email protected]>2014-12-09 19:28:50 -0600
committerAaron Watry <[email protected]>2014-12-09 19:28:50 -0600
commit25db8729dc53b60ee0caade5e797e99d6ad13fa3 (patch)
tree1a76b5c996938a16510b1f886c392e971c1fc7c2
parent69d23809d06cb1bb20a92430e18720baff5994bc (diff)
clover: Fix build after llvm r223802
Signed-off-by: Aaron Watry <awatry at gmail.com> Reviewed-by: Tom Stellard <[email protected]>
-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 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<llvm::Function>(
+#else
kernels.push_back(llvm::dyn_cast<llvm::Function>(
+#endif
kernel_node->getOperand(i)->getOperand(0)));
}
}