projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86532db
)
Fixed bug in APInt::Profile() where the BitWidth field was not included in the
author
Ted Kremenek
<kremenek@apple.com>
Tue, 19 Feb 2008 20:50:41 +0000
(20:50 +0000)
committer
Ted Kremenek
<kremenek@apple.com>
Tue, 19 Feb 2008 20:50:41 +0000
(20:50 +0000)
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
lib/Support/APInt.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/APInt.cpp
b/lib/Support/APInt.cpp
index 9886de83dc4de63c064e8b0fbc30190b2a2bb827..bc5df9cf47907f5b304147349449df27409af99b 100644
(file)
--- 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;