Skip to content
Unverified Commit 5619e1b8 authored by Paul Kirth's avatar Paul Kirth Committed by GitHub
Browse files

Fix non-determinism in debuginfo (#68332)

Assignment tracking iterates over a SmallSet when adding metadata, which
eventually results in debug metadata being added to the module in
non-deterministic order.

As reported in #63921, we saw some cases where DWARF DebugLoc entries
could have their order reversed, even though there was no functional
difference.

This patch replaces the `SmallSet` with a `SmallVector`, and adds the
required `DenseMapInfo` specialization to make the ordering
deterministic.

Fixes #63921
parent 28e8ade0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment