Revert r139222, operator->() in PreprocessingRecord::iterator. It is useful
to meet the requirements of the InputIterator concept.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139261 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/Lex/PreprocessingRecord.h b/include/clang/Lex/PreprocessingRecord.h
index e12e201..7bcc962 100644
--- a/include/clang/Lex/PreprocessingRecord.h
+++ b/include/clang/Lex/PreprocessingRecord.h
@@ -336,6 +336,13 @@
return Self->LoadedPreprocessedEntities.end()[Position];
return Self->PreprocessedEntities[Position];
}
+
+ pointer operator->() const {
+ if (Position < 0)
+ return &Self->LoadedPreprocessedEntities.end()[Position];
+
+ return &Self->PreprocessedEntities[Position];
+ }
reference operator[](difference_type D) {
return *(*this + D);