summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/comp.el
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-05-13 08:52:47 +0100
committerAndrea Corallo <akrl@sdf.org>2020-05-15 20:06:49 +0100
commite351a12216519d3ed09892752ce0b137f6672986 (patch)
tree4dc9be6f453f84181c9feb77975d5ec169cd3edb /lisp/emacs-lisp/comp.el
parent2b064c780cdcb4a7bb832e11d4a166954c485ac5 (diff)
downloademacs-e351a12216519d3ed09892752ce0b137f6672986.tar.gz
emacs-e351a12216519d3ed09892752ce0b137f6672986.tar.bz2
emacs-e351a12216519d3ed09892752ce0b137f6672986.zip
Sanity check on lambdas fixups
* src/pdumper.c (dump_do_dump_relocation): While fixing up lambda relocation verify placeholder coherency. * src/comp.c (syms_of_comp): Define symbol 'lambda-fixup'. * lisp/emacs-lisp/comp.el (comp-finalize-container): Leave a lambda-fixup as placeholder in the relocation as a sanity check.
Diffstat (limited to 'lisp/emacs-lisp/comp.el')
-rw-r--r--lisp/emacs-lisp/comp.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index d546218940b..7de8e0177c1 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -2158,7 +2158,7 @@ These are substituted with a normal 'set' op."
;; from the corresponding m-var.
collect (if (gethash obj
(comp-ctxt-byte-func-to-func-h comp-ctxt))
- nil
+ 'lambda-fixup
obj))))
(defun comp-finalize-relocs ()