mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 17:30:20 +01:00
Re-commit 'clover: Fix build with LLVM 3.5'
This was accidentally reverted in 9dfd7c5f75
This commit is contained in:
parent
f094866d93
commit
54df6a0491
1 changed files with 3 additions and 1 deletions
|
|
@ -297,8 +297,10 @@ namespace {
|
|||
llvm::Argument &arg = *I;
|
||||
#if HAVE_LLVM < 0x0302
|
||||
llvm::TargetData TD(kernel_func->getParent());
|
||||
#else
|
||||
#elif HAVE_LLVM < 0x0304
|
||||
llvm::DataLayout TD(kernel_func->getParent()->getDataLayout());
|
||||
#else
|
||||
llvm::DataLayout TD(mod);
|
||||
#endif
|
||||
|
||||
llvm::Type *arg_type = arg.getType();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue