mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 01:00:10 +01:00
swr: [rasterizer jitter] fix llvm-3.7 compile
d3d97f8 broke llvm-3.7, which has a mismatched API for
setDataLayout/getDataLayout.
Signed-off-by: Tim Rowley <timothy.o.rowley@intel.com>
(cherry picked from commit ae4f2c849a)
This commit is contained in:
parent
0934f29c50
commit
a4cd90283a
1 changed files with 5 additions and 0 deletions
|
|
@ -241,7 +241,12 @@ bool JitManager::SetupModuleFromIR(const uint8_t *pIR)
|
|||
return false;
|
||||
}
|
||||
|
||||
#if HAVE_LLVM == 0x307
|
||||
// llvm-3.7 has mismatched setDataLyout/getDataLayout APIs
|
||||
newModule->setDataLayout(*mpExec->getDataLayout());
|
||||
#else
|
||||
newModule->setDataLayout(mpExec->getDataLayout());
|
||||
#endif
|
||||
|
||||
mpCurrentModule = newModule.get();
|
||||
#if defined(_WIN32)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue