Don't use jit_State during build with JIT disabled.

This commit is contained in:
Mike Pall
2022-06-08 11:20:28 +02:00
parent 68bb11405c
commit b32e94856b
3 changed files with 19 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
#include "buildvm.h"
#include "lj_obj.h"
#if LJ_HASJIT
#include "lj_ir.h"
/* Context for the folding hash table generator. */
@@ -226,4 +227,10 @@ void emit_fold(BuildCtx *ctx)
makehash(ctx);
}
#else
void emit_fold(BuildCtx *ctx)
{
UNUSED(ctx);
}
#endif