Skip to content

Commit 175d70e

Browse files
VarStreamArrayIterator needed non-const operator* overload.
Without this change, the operator-> provided by iterator_facade lost type qualifiers. Differential Revision: https://reviews.llvm.org/D32235 llvm-svn: 300877
1 parent 0ec3f2f commit 175d70e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/include/llvm/Support/BinaryStreamArray.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ class VarStreamArrayIterator
162162
return ThisValue;
163163
}
164164

165+
ValueType &operator*() {
166+
assert(Array && !HasError);
167+
return ThisValue;
168+
}
169+
165170
IterType &operator+=(unsigned N) {
166171
for (unsigned I = 0; I < N; ++I) {
167172
// We are done with the current record, discard it so that we are

0 commit comments

Comments
 (0)