Skip to content

Conversation

@tlively
Copy link
Member

@tlively tlively commented Dec 7, 2021

Types and HeapTypes are inserted into their respective stores either by copying
a reference to a TypeInfo or HeapTypeInfo or by moving a
std::unique_ptr<TypeInfo> or std::unique_ptr<HeapTypeInfo>. Previously these
two code paths had separate, similar logic. To reduce deduplication, combine
both code paths into a single method.

Types and HeapTypes are inserted into their respective stores either by copying
a reference to a `TypeInfo` or `HeapTypeInfo` or by moving a
`std::unique_ptr<TypeInfo>` or `std::unique_ptr<HeapTypeInfo>`. Previously these
two code paths had separate, similar logic. To reduce deduplication, combine
both code paths into a single method.
@tlively tlively requested a review from kripken December 7, 2021 15:26
Base automatically changed from optional-get-canonical to main December 7, 2021 17:14
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Somewhat fancy is_same and constexpr stuff, but looks like a valid use of them...

@tlively tlively enabled auto-merge (squash) December 7, 2021 19:05
@tlively tlively merged commit 756f90b into main Dec 7, 2021
@tlively tlively deleted the deduplicate-store-insert-logic branch December 7, 2021 19:26
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.

3 participants