diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-02-19 20:50:41 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-02-19 20:50:41 +0000 |
| commit | 79f659180225d802a5aa875ca6564c59f281a6d8 (patch) | |
| tree | 11e4e350ca78a90d2f3e7084087baee2ad49d582 /lib/Support | |
| parent | 2179fecb7c038c0755ca971666219b412e8cb60e (diff) | |
| download | external_llvm-79f659180225d802a5aa875ca6564c59f281a6d8.zip external_llvm-79f659180225d802a5aa875ca6564c59f281a6d8.tar.gz external_llvm-79f659180225d802a5aa875ca6564c59f281a6d8.tar.bz2 | |
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
Diffstat (limited to 'lib/Support')
| -rw-r--r-- | lib/Support/APInt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index 9886de8..bc5df9c 100644 --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -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; |
