Skip to content

Commit 02a06c4

Browse files
davidbenCommit Bot
authored andcommitted
Fix RegisterAllocationData::ResetSpillState
Bug: chromium:1014607 Change-Id: Ifcd1ce17fb1f95965355a4e3f63bdc78fa88042f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1865613 Auto-Submit: David Benjamin <[email protected]> Reviewed-by: Thibaud Michaud <[email protected]> Reviewed-by: Bill Budge <[email protected]> Commit-Queue: Bill Budge <[email protected]> Cr-Commit-Position: refs/heads/master@{#64338}
1 parent 6fd3109 commit 02a06c4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/compiler/backend/register-allocator.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,11 @@ class RegisterAllocationData final : public ZoneObject {
335335
return result;
336336
}
337337

338-
void ResetSpillState() { spill_state_.clear(); }
338+
void ResetSpillState() {
339+
for (auto& state : spill_state_) {
340+
state.clear();
341+
}
342+
}
339343

340344
TickCounter* tick_counter() { return tick_counter_; }
341345

0 commit comments

Comments
 (0)