mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
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:
parent
f4b996b77a
commit
7dfb9ba023
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue