summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-04-18 23:50:07 +0000
committerJustin Bogner <mail@justinbogner.com>2014-04-18 23:50:07 +0000
commit1907b942222c3fc7a11cffd51990ca7693bb9254 (patch)
tree6764242ae1d62ef5aa36bd457b10490066c66cdb /include
parent6b2b2043c9063a9d80a7c3769d923b83ba521d1e (diff)
downloadllvm-1907b942222c3fc7a11cffd51990ca7693bb9254.tar.gz
llvm-1907b942222c3fc7a11cffd51990ca7693bb9254.tar.bz2
llvm-1907b942222c3fc7a11cffd51990ca7693bb9254.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/OnDiskHashTable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/OnDiskHashTable.h b/include/llvm/Support/OnDiskHashTable.h
index 94ed3ebc00..289f7922f2 100644
--- a/include/llvm/Support/OnDiskHashTable.h
+++ b/include/llvm/Support/OnDiskHashTable.h
@@ -146,7 +146,7 @@ public:
endian::Writer<little> LE(Out);
// Emit the payload of the table.
- for (size_t I = 0; I < NumBuckets; ++I) {
+ for (offset_type I = 0; I < NumBuckets; ++I) {
Bucket &B = Buckets[I];
if (!B.Head)
continue;
@@ -179,7 +179,7 @@ public:
// Emit the hashtable itself.
LE.write<offset_type>(NumBuckets);
LE.write<offset_type>(NumEntries);
- for (size_t I = 0; I < NumBuckets; ++I)
+ for (offset_type I = 0; I < NumBuckets; ++I)
LE.write<offset_type>(Buckets[I].Off);
return TableOff;