gallivm: fix build with LLVM 15
authorMarek Olšák <marek.olsak@amd.com>
Sat, 12 Feb 2022 01:20:35 +0000 (20:20 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 22 Feb 2022 01:28:11 +0000 (01:28 +0000)
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15095>

src/gallium/auxiliary/gallivm/lp_bld_misc.cpp

index be288ab..016a0c7 100644 (file)
@@ -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>