Skip to content

Commit

Permalink
bugfix: clear preservations when resetting register alloc (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop authored Nov 19, 2023
1 parent 7911bd2 commit d1bc10c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ impl RegisterAlloc {

/// Resets the [`RegisterAlloc`] to start compiling a new function.
pub fn reset(&mut self) {
self.preservations.clear();
self.phase = AllocPhase::Init;
self.len_locals = 0;
self.next_dynamic = 0;
Expand Down

0 comments on commit d1bc10c

Please sign in to comment.