Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 1907b94

Browse files
committed
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
1 parent 6b2b204 commit 1907b94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/llvm/Support/OnDiskHashTable.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ template <typename Info> class OnDiskChainedHashTableGenerator {
146146
endian::Writer<little> LE(Out);
147147

148148
// Emit the payload of the table.
149-
for (size_t I = 0; I < NumBuckets; ++I) {
149+
for (offset_type I = 0; I < NumBuckets; ++I) {
150150
Bucket &B = Buckets[I];
151151
if (!B.Head)
152152
continue;
@@ -179,7 +179,7 @@ template <typename Info> class OnDiskChainedHashTableGenerator {
179179
// Emit the hashtable itself.
180180
LE.write<offset_type>(NumBuckets);
181181
LE.write<offset_type>(NumEntries);
182-
for (size_t I = 0; I < NumBuckets; ++I)
182+
for (offset_type I = 0; I < NumBuckets; ++I)
183183
LE.write<offset_type>(Buckets[I].Off);
184184

185185
return TableOff;

0 commit comments

Comments
 (0)