projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b2b204
)
OnDiskHashTable: Fix a think-o with offset_type
author
Justin Bogner
<mail@justinbogner.com>
Fri, 18 Apr 2014 23:50:07 +0000
(23:50 +0000)
committer
Justin Bogner
<mail@justinbogner.com>
Fri, 18 Apr 2014 23:50:07 +0000
(23:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206672
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/OnDiskHashTable.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/OnDiskHashTable.h
b/include/llvm/Support/OnDiskHashTable.h
index 94ed3ebc0020515e99f9d12918a2d4ad7c47d1c5..289f7922f2a6090d566fbe1119681c26c56fca5e 100644
(file)
--- 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;