From fbf74489c951ef9219b08257a36b8e46519f6e3f Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Wed, 14 Oct 2026 19:28:13 -0400 Subject: [PATCH] Avoid outputing a raw address in an il_display warning since it could change from run to run. [GH #340] --- src/il_display.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/il_display.c b/src/il_display.c index 92f44065db..9145ed239d 100644 --- a/src/il_display.c +++ b/src/il_display.c @@ -168,10 +168,12 @@ kind entry_kind. function-scope memory region kind. For string entries this can happen even when the string is allocated in file-scope memory, because strings referenced from a function-scope memory region - are numbered as honorary members of that region during IL output. */ + are numbered as honorary members of that region during IL output. + See assign_entry_number for details. */ if (is_string_entry_kind(entry_kind)) { - (void)fprintf(f_display, "**possible non-file-scope ptr** (%p)", - (a_void_ptr)entry_ptr); + /* This is usually benign, so omit the pointer value, which would + only make the display vary from run to run. */ + (void)fprintf(f_display, "**possible non-file-scope ptr**"); } else { (void)fprintf(f_display, "**NON FILE SCOPE PTR** (%p)", (a_void_ptr)entry_ptr);