Skip to content

[DWARFLinkerTypeUnit] Simplify code around try_emplace (NFC) #109670

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

Conversation

kazutakahirata
Copy link
Contributor

Without this patch, we first default-construct a value with
try_emplace and then immediately override it with a new value.

This patch inserts the final value with try_emplace and simplies the
code around it.

Without this patch, we first default-construct a value with
try_emplace and then immediately override it with a new value.

This patch inserts the final value with try_emplace and simplies the
code around it.
@kazutakahirata kazutakahirata merged commit 2028687 into llvm:main Sep 24, 2024
9 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_001_simplify_try_emplace_DWARFLinkerTypeUnit branch September 24, 2024 02:20
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