Skip to content

Commit fc55791

Browse files
Address a comment.
1 parent 19f8fed commit fc55791

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/include/llvm/ADT/DenseMap.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,9 @@ class SmallDenseMap
10771077
}
10781078

10791079
void deallocateBuckets() {
1080+
// Fast path to deallocateBuckets in case getLargeRep()->NumBuckets == 0,
1081+
// just like destroyAll. This path is used to destruct zombie instances
1082+
// after moves.
10801083
if (Small || getLargeRep()->NumBuckets == 0)
10811084
return;
10821085

0 commit comments

Comments
 (0)