[all-commits] [llvm/llvm-project] 93a20e: [DebugInfo] Check DIEnumerator bit width when comp...
aeubanks via All-commits
all-commits at lists.llvm.org
Fri Dec 3 13:40:44 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 93a20ecee4b6c6618e0a8e1112f4f929d55ffcbb
https://github.com/llvm/llvm-project/commit/93a20ecee4b6c6618e0a8e1112f4f929d55ffcbb
Author: Arthur Eubanks <aeubanks at google.com>
Date: 2021-12-03 (Fri, 03 Dec 2021)
Changed paths:
M llvm/lib/IR/LLVMContextImpl.h
M llvm/unittests/IR/DebugInfoTest.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list