aboutsummaryrefslogtreecommitdiff
path: root/src/host/buildvm_fold.c
diff options
context:
space:
mode:
authorMike Pall <mike>2022-06-08 11:20:28 +0200
committerMike Pall <mike>2022-06-08 11:20:28 +0200
commitb32e94856bf4970261e4d9d925133ba802a62d16 (patch)
treee117c8c956d343b4b0e9764b3954ebcd03920df2 /src/host/buildvm_fold.c
parent68bb11405ce8b6356cb90dac010b5c87b933bbab (diff)
downloadluajit-b32e94856bf4970261e4d9d925133ba802a62d16.tar.gz
luajit-b32e94856bf4970261e4d9d925133ba802a62d16.tar.bz2
luajit-b32e94856bf4970261e4d9d925133ba802a62d16.zip
Don't use jit_State during build with JIT disabled.
Diffstat (limited to 'src/host/buildvm_fold.c')
-rw-r--r--src/host/buildvm_fold.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/host/buildvm_fold.c b/src/host/buildvm_fold.c
index 7f9ac058..edb55768 100644
--- a/src/host/buildvm_fold.c
+++ b/src/host/buildvm_fold.c
@@ -5,6 +5,7 @@
5 5
6#include "buildvm.h" 6#include "buildvm.h"
7#include "lj_obj.h" 7#include "lj_obj.h"
8#if LJ_HASJIT
8#include "lj_ir.h" 9#include "lj_ir.h"
9 10
10/* Context for the folding hash table generator. */ 11/* Context for the folding hash table generator. */
@@ -226,4 +227,10 @@ void emit_fold(BuildCtx *ctx)
226 227
227 makehash(ctx); 228 makehash(ctx);
228} 229}
230#else
231void emit_fold(BuildCtx *ctx)
232{
233 UNUSED(ctx);
234}
235#endif
229 236