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

[CIR][CIRGen] Remove -clangir-disable-emit-cxx-default #1198

Merged
merged 5 commits into from
Dec 3, 2024

Conversation

smeenai
Copy link
Collaborator

@smeenai smeenai commented Dec 3, 2024

This is a leftover from when ClangIR was initially focused on analysis
and could ignore default method generation. We now handle default
methods and should generate them in all cases. This fixes several bugs:

  • Default methods weren't emitted when emitting LLVM, only CIR.
  • Default methods only referenced by other default methods weren't
    emitted.

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
smeenai added a commit that referenced this pull request Dec 3, 2024
This is a leftover from when ClangIR was initially focused on analysis
and could ignore default method generation. We now handle default
methods and should generate them in all cases. This fixes several bugs:
- Default methods weren't emitted when emitting LLVM, only CIR.
- Default methods only referenced by other default methods weren't
  emitted.

ghstack-source-id: baf60aa3c81268fcfe0a4143eff1fd87e37ee771
ghstack-comment-id: 2513346334
Pull Request resolved: #1198
smeenai added a commit to smeenai/clangir that referenced this pull request Dec 3, 2024
Base automatically changed from users/smeenai/3/head to main December 3, 2024 19:16
@smeenai smeenai merged commit 7fb608d into main Dec 3, 2024
6 checks passed
@smeenai smeenai deleted the users/smeenai/4/head branch December 3, 2024 19:17
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