@@ -85,6 +85,10 @@ struct FieldRecordIterator {
85
85
return *Cur;
86
86
}
87
87
88
+ const FieldRecord *operator ->() const {
89
+ return Cur;
90
+ }
91
+
88
92
FieldRecordIterator &operator ++() {
89
93
++Cur;
90
94
return *this ;
@@ -159,6 +163,10 @@ class FieldDescriptorIterator
159
163
return *reinterpret_cast <const FieldDescriptor *>(Cur);
160
164
}
161
165
166
+ const FieldDescriptor *operator ->() const {
167
+ return reinterpret_cast <const FieldDescriptor *>(Cur);
168
+ }
169
+
162
170
FieldDescriptorIterator &operator ++() {
163
171
const auto &FR = this ->operator *();
164
172
const void *Next = reinterpret_cast <const char *>(Cur)
@@ -207,6 +215,10 @@ struct AssociatedTypeRecordIterator {
207
215
return *Cur;
208
216
}
209
217
218
+ const AssociatedTypeRecord *operator ->() const {
219
+ return Cur;
220
+ }
221
+
210
222
AssociatedTypeRecordIterator &operator ++() {
211
223
++Cur;
212
224
return *this ;
@@ -278,6 +290,10 @@ class AssociatedTypeIterator
278
290
return *reinterpret_cast <const AssociatedTypeDescriptor *>(Cur);
279
291
}
280
292
293
+ const AssociatedTypeDescriptor *operator ->() const {
294
+ return reinterpret_cast <const AssociatedTypeDescriptor *>(Cur);
295
+ }
296
+
281
297
AssociatedTypeIterator &operator ++() {
282
298
const auto &ATR = this ->operator *();
283
299
size_t Size = sizeof (AssociatedTypeDescriptor) +
@@ -328,6 +344,10 @@ class BuiltinTypeDescriptorIterator
328
344
return *reinterpret_cast <const BuiltinTypeDescriptor *>(Cur);
329
345
}
330
346
347
+ const BuiltinTypeDescriptor *operator ->() const {
348
+ return reinterpret_cast <const BuiltinTypeDescriptor *>(Cur);;
349
+ }
350
+
331
351
BuiltinTypeDescriptorIterator &operator ++() {
332
352
const void *Next = reinterpret_cast <const char *>(Cur)
333
353
+ sizeof (BuiltinTypeDescriptor);
0 commit comments