Skip to content

[mypyc] Fix inconsistent vtable method prefix - #21812

Open
p-sawicki wants to merge 1 commit into
python:masterfrom
p-sawicki:fix-inconsistent-vtable-method-prefix
Open

[mypyc] Fix inconsistent vtable method prefix#21812
p-sawicki wants to merge 1 commit into
python:masterfrom
p-sawicki:fix-inconsistent-vtable-method-prefix

Conversation

@p-sawicki

Copy link
Copy Markdown
Collaborator

When generating the vtable we emit the name of either entry.method or entry.shadow_method. However the group prefix is always based on entry.method so if the two methods are in different compilation groups, we generate invalid C.

Fix the inconsistency by using the same method for the prefix as for the name.

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