mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 23:30:13 +01:00
clover: Fix build after llvm r223802
Signed-off-by: Aaron Watry <awatry at gmail.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
parent
69d23809d0
commit
25db8729dc
1 changed files with 4 additions and 0 deletions
|
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue