[PATCH] D32235: Add `operator->` overload to VarStreamArrayIterator
Adrian McCarthy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 20 11:47:30 PDT 2017
amccarth updated this revision to Diff 95998.
amccarth added a comment.
Better solution after discussion with inglorion and zturner.
https://reviews.llvm.org/D32235
Files:
llvm/include/llvm/Support/BinaryStreamArray.h
Index: llvm/include/llvm/Support/BinaryStreamArray.h
===================================================================
--- llvm/include/llvm/Support/BinaryStreamArray.h
+++ llvm/include/llvm/Support/BinaryStreamArray.h
@@ -162,6 +162,11 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32235.95998.patch
Type: text/x-patch
Size: 514 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170420/46804798/attachment.bin>
More information about the llvm-commits
mailing list