[pushed:,r16-3938] sarif-replay: fix uninitialized m_debug_physical_locations

Message ID 20250917204723.2386369-1-dmalcolm@redhat.com
State Committed
Commit ddabda614fed35583640a437bb641c42466476bc
Headers
Series [pushed:,r16-3938] sarif-replay: fix uninitialized m_debug_physical_locations |

Commit Message

David Malcolm Sept. 17, 2025, 8:47 p.m. UTC
  In r16-2766-g7969e4859ed007 I added a new field to replay_opts
but forgot to initialize it in set_defaults.

Fixed thusly.

Spotted thanks to valgrind.

Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
Pushed to trunk as r16-3938-gddabda614fed35.

gcc/ChangeLog:
	* sarif-replay.cc (set_defaults): Initialize
	m_debug_physical_locations.
---
 gcc/sarif-replay.cc | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/gcc/sarif-replay.cc b/gcc/sarif-replay.cc
index c740c29b2a32..aa7f2debe9cc 100644
--- a/gcc/sarif-replay.cc
+++ b/gcc/sarif-replay.cc
@@ -37,6 +37,7 @@  set_defaults (replay_options &replay_opts)
   replay_opts.m_echo_file = false;
   replay_opts.m_json_comments = false;
   replay_opts.m_verbose = false;
+  replay_opts.m_debug_physical_locations = false;
   replay_opts.m_diagnostics_colorize = DIAGNOSTIC_COLORIZE_IF_TTY;
 }