llvm.org GIT mirror llvm / 1907b94
OnDiskHashTable: Fix a think-o with offset_type git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206672 91177308-0d34-0410-b5e6-96231b3b80d8 Justin Bogner 6 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
145145 endian::Writer LE(Out);
146146
147147 // Emit the payload of the table.
148 for (size_t I = 0; I < NumBuckets; ++I) {
148 for (offset_type I = 0; I < NumBuckets; ++I) {
149149 Bucket &B = Buckets[I];
150150 if (!B.Head)
151151 continue;
178178 // Emit the hashtable itself.
179179 LE.write(NumBuckets);
180180 LE.write(NumEntries);
181 for (size_t I = 0; I < NumBuckets; ++I)
181 for (offset_type I = 0; I < NumBuckets; ++I)
182182 LE.write(Buckets[I].Off);
183183
184184 return TableOff;