[llvm][ADT] Remove duplicate code in llvm::StringMapImpl::RehashTable
authorwangyihan <1135831309@qq.com>
Wed, 16 Mar 2022 08:01:35 +0000 (01:01 -0700)
committerFangrui Song <i@maskray.me>
Wed, 16 Mar 2022 08:01:35 +0000 (01:01 -0700)
commitbab468f2536219ec824a2b6fe959fcaa7abf5685
tree34fce714cb29cf64ccd5f844b12c89f0dd20c8f7
parenta603f566dbe04d8a9eb0ada67b585965945f7e6d
[llvm][ADT] Remove duplicate code in llvm::StringMapImpl::RehashTable

Remove duplicate code in llvm::StringMapImpl::RehashTable, near StringMap.cpp:229

```
if (!NewTableArray[NewBucket]) {
  NewTableArray[FullHash & (NewSize - 1)] = Bucket;
  NewHashArray[FullHash & (NewSize - 1)] = FullHash;
  if (I == BucketNo)
    NewBucketNo = NewBucket;
  continue;
}
```

Reviewed By: MaskRay, dexonsmith

Differential Revision: https://reviews.llvm.org/D121726
llvm/lib/Support/StringMap.cpp