Commit 69640a6
committed
[ADT] Simplify SmallDenseMap::swap (NFC)
This patch simplifies the swapping of *getLargeRep().
In other places, we treat the two member variables together like:
new (getLargeRep()) LargeRep(allocateBuckets(InitBuckets));
This patch makes the code a little more consistent with other places
copying/moving LargeRep.1 parent 68964f5 commit 69640a6
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | | - | |
1042 | | - | |
| 1041 | + | |
1043 | 1042 | | |
1044 | 1043 | | |
1045 | 1044 | | |
| |||
0 commit comments