gallivm: Fix compilation errors when using LLVM 13.

Adds missing header file and fixes local variable type.

Fixes: 47cd0eee26 ("gallivm: create a pass manager wrapper.")

Signed-off-by: Mark Burton <markb@smartavionics.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30058>
This commit is contained in:
Mark Burton 2024-07-06 08:00:18 +01:00 committed by Marge Bot
parent f4b996b77a
commit 7dfb9ba023

View file

@ -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)