[all-commits] [llvm/llvm-project] 67b5bc: [DebugInfo] Check DIEnumerator bit width when comp...
aeubanks via All-commits
all-commits at lists.llvm.org
Tue Jan 4 21:59:43 PST 2022
Author: Arthur Eubanks <aeubanks at google.com>
Date: 2022-01-04 (Tue, 04 Jan 2022)
[DebugInfo] Check DIEnumerator bit width when comparing for equality
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.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D115054
(cherry picked from commit 93a20ecee4b6c6618e0a8e1112f4f929d55ffcbb)
More information about the All-commits