[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] nick.lloyd-bytecode-jit dd45c93 2/2: ; Fix a compilation e
From: |
Nickolas Lloyd |
Subject: |
[Emacs-diffs] nick.lloyd-bytecode-jit dd45c93 2/2: ; Fix a compilation error when HAVE_LIBJIT=0 |
Date: |
Sun, 29 Jan 2017 18:51:38 +0000 (UTC) |
branch: nick.lloyd-bytecode-jit
commit dd45c930b2f35fc84f4fc5e15f03ed06fb042415
Author: Nickolas Lloyd <address@hidden>
Commit: Nickolas Lloyd <address@hidden>
; Fix a compilation error when HAVE_LIBJIT=0
; * src/alloc.c (cleanup_vector): Add a guard around libjit-specific
functions in case HAVE_LIBJIT=0.
---
src/alloc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/alloc.c b/src/alloc.c
index fe7bc12..4c62f81 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3221,8 +3221,10 @@ cleanup_vector (struct Lisp_Vector *vector)
else if (PSEUDOVECTOR_TYPEP (&vector->header, PVEC_COMPILED)
&& vector->contents[COMPILED_JIT_CTXT] != (Lisp_Object )NULL)
{
+#if HAVE_LIBJIT
jit_context_t ctxt = (jit_context_t )vector->contents[COMPILED_JIT_CTXT];
jit_context_destroy (ctxt);
+#endif
vector->contents[COMPILED_JIT_CTXT] = (Lisp_Object )NULL;
vector->contents[COMPILED_JIT_CLOSURE] = (Lisp_Object )NULL;
}