diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2025-08-01 17:39:35 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-08-05 16:37:02 +0200 |
commit | 26055423013bdfd07402482a1e7846b20569868a (patch) | |
tree | 34355b820bcf04346c543e01e47f54f0ea6a65c9 /gcc | |
parent | d44420f3f3fdf1e86432b8c240f70e75be7296c3 (diff) | |
download | gcc-26055423013bdfd07402482a1e7846b20569868a.zip gcc-26055423013bdfd07402482a1e7846b20569868a.tar.gz gcc-26055423013bdfd07402482a1e7846b20569868a.tar.bz2 |
gccrs: Initialize boolean flag correctly
Flag was left uninitialized within default constructor.
gcc/rust/ChangeLog:
* hir/rust-hir-dump.cc (Dump::Dump): Initialize flag.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/hir/rust-hir-dump.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/hir/rust-hir-dump.cc b/gcc/rust/hir/rust-hir-dump.cc index 0a2fc81..a0cdcb2 100644 --- a/gcc/rust/hir/rust-hir-dump.cc +++ b/gcc/rust/hir/rust-hir-dump.cc @@ -92,7 +92,7 @@ Dump::go (HIR::Crate &e) end ("Crate"); } -Dump::Dump (std::ostream &stream) : stream (stream) {} +Dump::Dump (std::ostream &stream) : beg_of_line (false), stream (stream) {} /** * Writes TEXT with a final newline if ENDLINE is true. |