We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24f836a commit 3336c6cCopy full SHA for 3336c6c
llvm/include/llvm/ADT/DenseMap.h
@@ -372,8 +372,8 @@ class DenseMapBase : public DebugEpochBase {
372
// Ensure that "NumEntries * 4 < NumBuckets * 3"
373
if (NumEntries == 0)
374
return 0;
375
- // +1 is required because of the strict equality.
376
- // For example if NumEntries is 48, we need to return 401.
+ // +1 is required because of the strict inequality.
+ // For example, if NumEntries is 48, we need to return 128.
377
return NextPowerOf2(NumEntries * 4 / 3 + 1);
378
}
379
0 commit comments