aboutsummaryrefslogtreecommitdiff
path: root/third_party/llvm-10.0/llvm/include/llvm/ProfileData/InstrProfReader.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/llvm-10.0/llvm/include/llvm/ProfileData/InstrProfReader.h')
-rw-r--r--third_party/llvm-10.0/llvm/include/llvm/ProfileData/InstrProfReader.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/third_party/llvm-10.0/llvm/include/llvm/ProfileData/InstrProfReader.h b/third_party/llvm-10.0/llvm/include/llvm/ProfileData/InstrProfReader.h
index f5f552672..e80cac258 100644
--- a/third_party/llvm-10.0/llvm/include/llvm/ProfileData/InstrProfReader.h
+++ b/third_party/llvm-10.0/llvm/include/llvm/ProfileData/InstrProfReader.h
@@ -50,8 +50,12 @@ public:
InstrProfIterator(InstrProfReader *Reader) : Reader(Reader) { Increment(); }
InstrProfIterator &operator++() { Increment(); return *this; }
- bool operator==(const InstrProfIterator &RHS) { return Reader == RHS.Reader; }
- bool operator!=(const InstrProfIterator &RHS) { return Reader != RHS.Reader; }
+ bool operator==(const InstrProfIterator &RHS) const {
+ return Reader == RHS.Reader;
+ }
+ bool operator!=(const InstrProfIterator &RHS) const {
+ return Reader != RHS.Reader;
+ }
value_type &operator*() { return Record; }
value_type *operator->() { return &Record; }
};