mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
Fixed bug in APInt::Profile() where the BitWidth field was not included in the
profile of the APSInt object. This caused unexpected Profile collisions where none should have occurred. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47338 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
86532db5d7
commit
a795aca96a
@ -167,6 +167,8 @@ APInt& APInt::operator=(uint64_t RHS) {
|
||||
|
||||
/// Profile - This method 'profiles' an APInt for use with FoldingSet.
|
||||
void APInt::Profile(FoldingSetNodeID& ID) const {
|
||||
ID.AddInteger(BitWidth);
|
||||
|
||||
if (isSingleWord()) {
|
||||
ID.AddInteger(VAL);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user