Author: akirtzidis
Date: Wed Sep  7 16:50:10 2011
New Revision: 139261

URL: http://llvm.org/viewvc/llvm-project?rev=139261&view=rev
Log:
Revert r139222, operator->() in PreprocessingRecord::iterator. It is useful
to meet the requirements of the InputIterator concept.

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=139261&r1=139260&r2=139261&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/PreprocessingRecord.h (original)
+++ cfe/trunk/include/clang/Lex/PreprocessingRecord.h Wed Sep  7 16:50:10 2011
@@ -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);


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to