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

Fix nondeterminism in debuginfo generation #118

Merged

Conversation

yanok
Copy link

@yanok yanok commented Nov 9, 2021

Changes from commit 1db137b
added iteration over hash map that can result in non-deterministic
order. Fix that by using SmallMapVector instead.

This is accepted but not yet merged into LLVM.
Differential Revision: https://reviews.llvm.org/D113468

This is a prereq to fix rust-lang/rust#90301

@tmandry
Copy link
Member

tmandry commented Nov 10, 2021

Thanks for tracking this down! This has now been merged upstream.

@cuviper
Copy link
Member

cuviper commented Nov 10, 2021

The upstream commit is 3c47c5c.

@cuviper
Copy link
Member

cuviper commented Nov 10, 2021

Could you update the commit log to match? Especially the subject line, as that helps us keep track of upstream patches.
(Force-pushing your pull request is fine here.)

Changes from commit 1db137b
added iteration over hash map that can result in non-deterministic
order. Fix that by using a SmallMapVector to preserve the order.

Differential Revision: https://reviews.llvm.org/D113468

(cherry picked from commit 3c47c5c)
@yanok yanok force-pushed the rustc/13.0-2021-09-30-dbginfo-fix branch from e010759 to e7c27bc Compare November 10, 2021 08:58
@yanok
Copy link
Author

yanok commented Nov 10, 2021

Cherry-picked from llvm:main and updated the message to reflect it's a cherry-pick.

@nikic nikic merged commit e048e97 into rust-lang:rustc/13.0-2021-09-30 Nov 10, 2021
vext01 pushed a commit to vext01/llvm-project that referenced this pull request Mar 8, 2024
Yk assumes all pointers are the same size as a void pointer.
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.

4 participants