-
Couldn't load subscription status.
- Fork 1.5k
Avoid mismatched InterfaceId comparison between two files #6241
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
Avoid mismatched InterfaceId comparison between two files #6241
Conversation
toolchain/check/impl_validation.cpp
Outdated
| auto interface_owning_decl_id = interface.first_owning_decl_id; | ||
| if (!interface_owning_decl_id.has_value()) { | ||
| continue; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If first_owning_decl_id was None, the import_ir_id returned from GetIRId would be None, and we would have returned above, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right, sorry - had meant to clean up/remove the GetIRId call, since this one caller now needs both parts of the ImportIRInst (both the ImportIRId, and the InstId).
Done that (though it did mean needing two !has_value() -> continue blocks) in 7558fe5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Dana Jansens <[email protected]>
No description provided.