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

Preserve the is_dynamic property of classes when importing them #4501

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

dwblaikie
Copy link
Contributor

@dwblaikie dwblaikie commented Nov 7, 2024

The test update shows a class derived from an imported base class with a vptr, and without this change the derived class got its own vptr, with this change the derived class can see the base is dynamic, so the derived doesn't need to add a vptr and can rely on the base class's vptr instead.

@dwblaikie
Copy link
Contributor Author

The test update shows a class derived from an imported base class with a vptr, and without this change the derived class got its own vptr, with this change the derived class can see the base is dynamic, so the derived doesn't need to add a vptr and can rely on the base class's vptr instead.

Copy link
Contributor

@jonmeow jonmeow left a comment

Choose a reason for hiding this comment

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

LG, though should your comment in the conversation be moved into the PR description so that it's used as the commit message on merge?

@dwblaikie dwblaikie added this pull request to the merge queue Nov 12, 2024
Merged via the queue into carbon-language:trunk with commit 79c5c47 Nov 12, 2024
8 checks passed
@dwblaikie dwblaikie deleted the import_is_dynamic branch November 12, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants