Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Relax] Enhance global var struct info update in BlockBuilder #17446

Closed
wants to merge 1 commit into from

Conversation

Hzfengsy
Copy link
Member

@Hzfengsy Hzfengsy commented Oct 6, 2024

The current BlockBuilder does not update the global var struct info after a function is updated. This commit enhances the BlockBuilder to update the global var struct info after a function is updated.

The current BlockBuilder does not update the global var struct info
after a function is updated. This commit enhances the BlockBuilder to
update the global var struct info after a function is updated.
@@ -141,6 +130,8 @@ class BlockBuilderImpl : public BlockBuilderNode {
}

context_mod_->Update(gv, function);
// Force update struct info
gv->struct_info_ = GetStructInfo(function);
Copy link
Member

Choose a reason for hiding this comment

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

one potential issue here is that the caller still relies on the assumption of previous function sigature, so automatically updating this may not always be desirable, is there any motivating usecase here?

@Hzfengsy Hzfengsy closed this Oct 15, 2024
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.

2 participants