Mesa (main): gallivm: fix build with LLVM 15
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 22 02:17:31 UTC 2022
Module: Mesa
Branch: main
Commit: 7ec8a3205e65d3a868e95f53d6799da4c090c614
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ec8a3205e65d3a868e95f53d6799da4c090c614
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Feb 11 20:20:35 2022 -0500
gallivm: fix build with LLVM 15
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15095>
---
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
index be288ab02e2..016a0c78ac5 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@ -64,6 +64,9 @@
#include <llvm/Support/PrettyStackTrace.h>
#include <llvm/ExecutionEngine/ObjectCache.h>
#include <llvm/Support/TargetSelect.h>
+#if LLVM_VERSION_MAJOR >= 15
+#include <llvm/Support/MemoryBuffer.h>
+#endif
#if LLVM_VERSION_MAJOR < 11
#include <llvm/IR/CallSite.h>
More information about the mesa-commit
mailing list