]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/pdumper.c (dump_native_comp_unit): Error if CU is not fixed-up
authorAndrea Corallo <akrl@sdf.org>
Fri, 19 Aug 2022 08:21:38 +0000 (10:21 +0200)
committerAndrea Corallo <akrl@sdf.org>
Fri, 19 Aug 2022 08:22:32 +0000 (10:22 +0200)
src/pdumper.c

index 168027726c5e9f0bba50784084114a6894b5932a..fb70df994a6382a305e488791c09f14ad520c9ed 100644 (file)
@@ -2910,6 +2910,9 @@ static dump_off
 dump_native_comp_unit (struct dump_context *ctx,
                       struct Lisp_Native_Comp_Unit *comp_u)
 {
+  if (!CONSP (comp_u->file))
+    error ("Trying to dump non fixed-up eln file\n");
+
   /* Have function documentation always lazy loaded to optimize load-time.  */
   comp_u->data_fdoc_v = Qnil;
   START_DUMP_PVEC (ctx, &comp_u->header, struct Lisp_Native_Comp_Unit, out);