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

Clean up some CopyOnWriteBlock details #4493

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

jonmeow
Copy link
Contributor

@jonmeow jonmeow commented Nov 5, 2024

No description provided.

for (auto i : llvm::index_range(0, size)) {
new_type_block.Set(size - i - 1,
context.GetTypeIdForTypeInst(worklist.Pop()));
for (auto i : llvm::reverse(llvm::seq(size))) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

(if this isn't clear, see above for loop, not sure why different approaches were taken)

Copy link
Contributor

@zygoloid zygoloid left a comment

Choose a reason for hiding this comment

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

Thanks!

@zygoloid zygoloid added this pull request to the merge queue Nov 6, 2024
Merged via the queue into carbon-language:trunk with commit 9aae9de Nov 6, 2024
10 checks passed
@jonmeow jonmeow deleted the copy-on-write-cleanup branch November 6, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants