diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp index 6e00a70c887..c6cbccf094a 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp @@ -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) |