Skip to content

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
Copy link
Collaborator Author

smeenai commented Dec 3, 2024

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: baf60aa
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
lanza pushed a commit that referenced this pull request Mar 18, 2025
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.
terapines-osc-cir pushed a commit to Terapines/clangir that referenced this pull request Sep 2, 2025
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.
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