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
This commit is contained in:
@@ -162,6 +162,11 @@ public:
|
||||
return ThisValue;
|
||||
}
|
||||
|
||||
ValueType &operator*() {
|
||||
assert(Array && !HasError);
|
||||
return ThisValue;
|
||||
}
|
||||
|
||||
IterType &operator+=(unsigned N) {
|
||||
for (unsigned I = 0; I < N; ++I) {
|
||||
// We are done with the current record, discard it so that we are
|
||||
|
||||
Reference in New Issue
Block a user