Skip to content

[mlir][Sol] Clear kind attr on the inner body when expanding modifiers#74

Merged
vladimirradosavljevic merged 1 commit into
mainfrom
app-modifier-on-constructor-kind
May 22, 2026
Merged

[mlir][Sol] Clear kind attr on the inner body when expanding modifiers#74
vladimirradosavljevic merged 1 commit into
mainfrom
app-modifier-on-constructor-kind

Conversation

@abinavpp

@abinavpp abinavpp commented May 14, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts Sol modifier lowering so the renamed inner function body no longer retains constructor/fallback/receive metadata after a wrapper function is created.

Changes:

  • Removes the kind attribute from the original sol.func after cloning it into the new wrapper.
  • Clarifies via comment that only the wrapper should retain constructor/fallback/receive kind.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vladimirradosavljevic vladimirradosavljevic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@abinavpp abinavpp force-pushed the app-blockhash-blobhash-selfdestruct branch from a16263c to 0a928a3 Compare May 15, 2026 10:24
@abinavpp abinavpp force-pushed the app-modifier-on-constructor-kind branch from b6c286a to 1a92b72 Compare May 15, 2026 10:24
@abinavpp abinavpp force-pushed the app-blockhash-blobhash-selfdestruct branch from 0a928a3 to 5ee78ff Compare May 18, 2026 23:53
@abinavpp abinavpp force-pushed the app-modifier-on-constructor-kind branch from 1a92b72 to f69d970 Compare May 18, 2026 23:53
@abinavpp abinavpp force-pushed the app-blockhash-blobhash-selfdestruct branch from 5ee78ff to 3389d13 Compare May 21, 2026 12:00
@abinavpp abinavpp force-pushed the app-modifier-on-constructor-kind branch from f69d970 to b9f278d Compare May 21, 2026 12:00
@abinavpp abinavpp force-pushed the app-blockhash-blobhash-selfdestruct branch from 3389d13 to 5ee78ff Compare May 21, 2026 12:01
@abinavpp abinavpp force-pushed the app-modifier-on-constructor-kind branch from b9f278d to f69d970 Compare May 21, 2026 12:01
@abinavpp abinavpp force-pushed the app-blockhash-blobhash-selfdestruct branch from 5ee78ff to 3389d13 Compare May 21, 2026 12:02
@abinavpp abinavpp force-pushed the app-modifier-on-constructor-kind branch 2 times, most recently from b9f278d to ec31d7a Compare May 22, 2026 11:08
@abinavpp abinavpp force-pushed the app-blockhash-blobhash-selfdestruct branch from 3389d13 to 032ab99 Compare May 22, 2026 11:08
@vladimirradosavljevic vladimirradosavljevic force-pushed the app-blockhash-blobhash-selfdestruct branch from 032ab99 to ee9bba7 Compare May 22, 2026 11:54
Base automatically changed from app-blockhash-blobhash-selfdestruct to main May 22, 2026 11:54
The renamed inner body kept its kind attr, so a constructor / fallback /
receive with a modifier produced two sol.funcs of the same kind in one
sol.contract and tripped ContractOpLowering's uniqueness assert.
@vladimirradosavljevic vladimirradosavljevic force-pushed the app-modifier-on-constructor-kind branch from ec31d7a to 1d2cd84 Compare May 22, 2026 11:55
@vladimirradosavljevic vladimirradosavljevic merged commit 13f74f9 into main May 22, 2026
5 checks passed
@vladimirradosavljevic vladimirradosavljevic deleted the app-modifier-on-constructor-kind branch May 22, 2026 11:55
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.

3 participants