Simplify, NFC.

Thanks to Rui for the suggestion.

llvm-svn: 247637
This commit is contained in:
Rafael Espindola 2015-09-14 23:28:02 +00:00
parent 3abe18d21a
commit c92d28d427
1 changed files with 2 additions and 4 deletions

View File

@ -237,10 +237,8 @@ public:
*P++ = NumSymbols; // nbucket
*P++ = NumSymbols; // nchain
std::vector<uint32_t> Buckets;
Buckets.resize(NumSymbols);
std::vector<uint32_t> Chains;
Chains.resize(NumSymbols);
std::vector<uint32_t> Buckets(NumSymbols);
std::vector<uint32_t> Chains(NumSymbols);
for (unsigned I = 1; I < NumSymbols; ++I) {
uint32_t Hash = Hashes[I - 1] % NumSymbols;