OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fa7ca8
)
VarStreamArrayIterator needed non-const operator* overload.
author
Adrian McCarthy
<amccarth@google.com>
Thu, 20 Apr 2017 19:34:06 +0000
(19:34 +0000)
committer
Adrian McCarthy
<amccarth@google.com>
Thu, 20 Apr 2017 19:34:06 +0000
(19:34 +0000)
Without this change, the operator-> provided by iterator_facade lost type
qualifiers.
Differential Revision: https://reviews.llvm.org/D32235
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300877
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/BinaryStreamArray.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/BinaryStreamArray.h
b/include/llvm/Support/BinaryStreamArray.h
index
3b1301d
..
21b2474
100644
(file)
--- a/
include/llvm/Support/BinaryStreamArray.h
+++ b/
include/llvm/Support/BinaryStreamArray.h
@@
-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