[cfe-commits] r139222 - /cfe/trunk/include/clang/Lex/PreprocessingRecord.h
Argyrios Kyrtzidis
akyrtzi at gmail.com
Tue Sep 6 20:43:39 PDT 2011
Author: akirtzidis
Date: Tue Sep 6 22:43:39 2011
New Revision: 139222
URL: http://llvm.org/viewvc/llvm-project?rev=139222&view=rev
Log:
operator->() in PreprocessingRecord::iterator is useless since we
are returning a pointer to pointer.
Modified:
cfe/trunk/include/clang/Lex/PreprocessingRecord.h
Modified: cfe/trunk/include/clang/Lex/PreprocessingRecord.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/PreprocessingRecord.h?rev=139222&r1=139221&r2=139222&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/PreprocessingRecord.h (original)
+++ cfe/trunk/include/clang/Lex/PreprocessingRecord.h Tue Sep 6 22:43:39 2011
@@ -336,13 +336,6 @@
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);
More information about the cfe-commits
mailing list