From 7dfb9ba023c0e4841125f8150c07515761f1143c Mon Sep 17 00:00:00 2001 From: Mark Burton Date: Sat, 6 Jul 2024 08:00:18 +0100 Subject: [PATCH] gallivm: Fix compilation errors when using LLVM 13. Adds missing header file and fixes local variable type. Fixes: 47cd0eee2611001499e3 ("gallivm: create a pass manager wrapper.") Signed-off-by: Mark Burton Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_passmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_passmgr.c b/src/gallium/auxiliary/gallivm/lp_bld_passmgr.c index 0fd61895d73..34786b02a5f 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_passmgr.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_passmgr.c @@ -26,6 +26,7 @@ **************************************************************************/ #include "util/u_debug.h" +#include "util/u_memory.h" #include "util/os_time.h" #include "lp_bld_debug.h" #include "lp_bld_passmgr.h" @@ -69,7 +70,7 @@ struct lp_passmgr; bool lp_passmgr_create(LLVMModuleRef module, struct lp_passmgr **mgr_p) { - void *mgr = NULL; + struct lp_passmgr *mgr = NULL; #if USE_NEW_PASS == 0 mgr = CALLOC_STRUCT(lp_passmgr); if (!mgr)