Skip to content

Commit 2c1c95f

Browse files
committed
Fixed pop to clear pending
1 parent 1af4039 commit 2c1c95f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/raw/semi_persistent1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ impl<L: Language, D, U: AsUnwrap<UndoLog>> RawEGraph<L, D, U> {
145145
memo_log_count,
146146
pop_parents_count,
147147
} = info;
148+
self.pending.clear();
148149
self.pop_memo1(memo_log_count);
149150
self.pop_unions1(union_count, pop_parents_count, split);
150151
self.pop_nodes1(node_count);

src/raw/semi_persistent2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ impl<L: Language, D, U: AsUnwrap<UndoLog>> RawEGraph<L, D, U> {
163163
memo_log_count,
164164
pop_parents_count,
165165
} = info;
166+
self.pending.clear();
166167
self.pop_memo2(memo_log_count);
167168
self.pop_parents2(pop_parents_count, node_count);
168169
self.pop_unions2(union_count, node_count, state, clear, mk_data, handle_eqv);

0 commit comments

Comments
 (0)