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:
81c2a6e
)
Evidently my earlier fix did not go far enough. When resizing a zero-sized
author
Owen Anderson
<resistor@mac.com>
Tue, 10 Jul 2007 02:01:16 +0000
(
02:01
+0000)
committer
Owen Anderson
<resistor@mac.com>
Tue, 10 Jul 2007 02:01:16 +0000
(
02:01
+0000)
BitVector, make sure to set or clear ALL of the bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38481
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/BitVector.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/BitVector.h
b/include/llvm/ADT/BitVector.h
index 5247756618e9ae9f0d89f5141a344dd83a1b1304..243a8102cf89e4de8b8f23dd4e15bff2cd61640f 100644
(file)
--- a/
include/llvm/ADT/BitVector.h
+++ b/
include/llvm/ADT/BitVector.h
@@
-188,7
+188,8
@@
public:
// If we previously had no size, initialize the low word
if (Size == 0)
- Bits[0] = t;
+ for (unsigned i = 0; i < Capacity; ++i)
+ Bits[i] = 0 - (unsigned)t;
Size = N;
clear_unused_bits();