mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
clover: Use correct LLVM version in #if for DataLayout construction
Spotted by Michel Dänzer.
This commit is contained in:
parent
1dd84357ec
commit
262e15fdd4
1 changed files with 1 additions and 1 deletions
|
|
@ -297,7 +297,7 @@ namespace {
|
|||
llvm::Argument &arg = *I;
|
||||
#if HAVE_LLVM < 0x0302
|
||||
llvm::TargetData TD(kernel_func->getParent());
|
||||
#elif HAVE_LLVM < 0x0304
|
||||
#elif HAVE_LLVM < 0x0305
|
||||
llvm::DataLayout TD(kernel_func->getParent()->getDataLayout());
|
||||
#else
|
||||
llvm::DataLayout TD(mod);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue