Skip to content

Commit 464d86b

Browse files
committed
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 <[email protected]>
1 parent 95347c8 commit 464d86b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/rust/hir/rust-hir-dump.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Dump::go (HIR::Crate &e)
9292
end ("Crate");
9393
}
9494

95-
Dump::Dump (std::ostream &stream) : stream (stream) {}
95+
Dump::Dump (std::ostream &stream) : beg_of_line (false), stream (stream) {}
9696

9797
/**
9898
* Writes TEXT with a final newline if ENDLINE is true.

0 commit comments

Comments
 (0)