Skip to content

Fix refinalization for --gufa-cast-all#8773

Open
tlively wants to merge 1 commit into
mainfrom
gufa-fuzz-bug
Open

Fix refinalization for --gufa-cast-all#8773
tlively wants to merge 1 commit into
mainfrom
gufa-fuzz-bug

Conversation

@tlively
Copy link
Copy Markdown
Member

@tlively tlively commented May 24, 2026

In #8747 we refactored GUFA's replaceCurrent to set optimized = true and removed the now-redundant optimized = true at all the call sites. But we were too aggressive and removed an optimized = true in Adder, which had a separate replaceCurrent that did not set optimized = true. This caused a regression where we no longer refinalized after adding casts, but the regression was not caught by any tests.

Fix the bug and add a test that depends on refinalization after adding casts.

In #8747 we refactored GUFA's `replaceCurrent` to set `optimized = true` and removed the now-redundant `optimized = true` at all the call sites. But we were too aggressive and removed an `optimized = true` in `Adder`, which had a separate `replaceCurrent` that did not set `optimized = true`. This caused a regression where we no longer refinalized after adding casts, but the regression was not caught by any tests.

Fix the bug and add a test that depends on refinalization after adding casts.
@tlively tlively requested a review from a team as a code owner May 24, 2026 20:58
@tlively tlively requested review from stevenfontanella and removed request for a team May 24, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant