This repository was archived by the owner on Feb 5, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -178,9 +178,9 @@ class SmallBitVector {
178
178
unsigned count () const {
179
179
if (isSmall ()) {
180
180
uintptr_t Bits = getSmallBits ();
181
- if (sizeof ( uintptr_t ) * CHAR_BIT == 32 )
181
+ if (NumBaseBits == 32 )
182
182
return CountPopulation_32 (Bits);
183
- if (sizeof ( uintptr_t ) * CHAR_BIT == 64 )
183
+ if (NumBaseBits == 64 )
184
184
return CountPopulation_64 (Bits);
185
185
llvm_unreachable (" Unsupported!" );
186
186
}
@@ -215,9 +215,9 @@ class SmallBitVector {
215
215
uintptr_t Bits = getSmallBits ();
216
216
if (Bits == 0 )
217
217
return -1 ;
218
- if (sizeof ( uintptr_t ) * CHAR_BIT == 32 )
218
+ if (NumBaseBits == 32 )
219
219
return CountTrailingZeros_32 (Bits);
220
- if (sizeof ( uintptr_t ) * CHAR_BIT == 64 )
220
+ if (NumBaseBits == 64 )
221
221
return CountTrailingZeros_64 (Bits);
222
222
llvm_unreachable (" Unsupported!" );
223
223
}
@@ -233,9 +233,9 @@ class SmallBitVector {
233
233
Bits &= ~uintptr_t (0 ) << (Prev + 1 );
234
234
if (Bits == 0 || Prev + 1 >= getSmallSize ())
235
235
return -1 ;
236
- if (sizeof ( uintptr_t ) * CHAR_BIT == 32 )
236
+ if (NumBaseBits == 32 )
237
237
return CountTrailingZeros_32 (Bits);
238
- if (sizeof ( uintptr_t ) * CHAR_BIT == 64 )
238
+ if (NumBaseBits == 64 )
239
239
return CountTrailingZeros_64 (Bits);
240
240
llvm_unreachable (" Unsupported!" );
241
241
}
You can’t perform that action at this time.
0 commit comments