diff options
Diffstat (limited to 'include/llvm/Support/LineIterator.h')
-rw-r--r-- | include/llvm/Support/LineIterator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Support/LineIterator.h b/include/llvm/Support/LineIterator.h index 861c19881f..92a9cc5c57 100644 --- a/include/llvm/Support/LineIterator.h +++ b/include/llvm/Support/LineIterator.h @@ -56,6 +56,7 @@ public: /// \brief Get the current line as a \c StringRef. StringRef operator*() const { return CurrentLine; } + const StringRef *operator->() const { return &CurrentLine; } friend bool operator==(const line_iterator &LHS, const line_iterator &RHS) { return LHS.Buffer == RHS.Buffer && |