Skip to content

Commit 95347c8

Browse files
committed
Initialize boolean flag correctly
gcc/rust/ChangeLog: * hir/rust-ast-lower-pattern.cc (ASTLoweringPattern::ASTLoweringPattern): flag was not initialized in the constructor. Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
1 parent df4566d commit 95347c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gcc/rust/hir/rust-ast-lower-pattern.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
namespace Rust {
2424
namespace HIR {
2525

26-
ASTLoweringPattern::ASTLoweringPattern () : translated (nullptr) {}
26+
ASTLoweringPattern::ASTLoweringPattern ()
27+
: translated (nullptr), is_let_top_level (false)
28+
{}
2729

2830
HIR::Pattern *
2931
ASTLoweringPattern::translate (AST::Pattern &pattern, bool is_let_top_level)

0 commit comments

Comments
 (0)