This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Check DIEnumerator bit width when comparing for equality
ClosedPublic

Authored by aeubanks on Dec 3 2021, 11:06 AM.

Details

Summary

As mentioned in D106585, this causes non-determinism, which can also be
shown by this test case being flaky without this patch.

We were using the APSInt's bit width for hashing, but not for checking
for equality. APInt::isSameValue() does not check bit width.

Diff Detail

Event Timeline

aeubanks created this revision.Dec 3 2021, 11:06 AM
aeubanks requested review of this revision.Dec 3 2021, 11:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 3 2021, 11:07 AM
rnk accepted this revision.Dec 3 2021, 1:23 PM

lgtm, thanks for the test!

This revision is now accepted and ready to land.Dec 3 2021, 1:23 PM