diff --git a/clang/include/clang/Lex/PreprocessingRecord.h b/clang/include/clang/Lex/PreprocessingRecord.h index 7bcc962739e0..e12e201e67c2 100644 --- a/clang/include/clang/Lex/PreprocessingRecord.h +++ b/clang/include/clang/Lex/PreprocessingRecord.h @@ -336,13 +336,6 @@ namespace clang { 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);