Author: dgregor
Date: Mon Jan 19 22:04:17 2009
New Revision: 62567
URL: http://llvm.org/viewvc/llvm-project?rev=62567&view=rev
Log:
Fix Decl::NextDeclInScope access issue
Modified:
cfe/trunk/include/clang/AST/DeclBase.h
Modified: cfe/trunk/include/clang/AST/DeclBase.h
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclBase.h?rev=62567&r1=62566&r2=62567&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclBase.h (original)
+++ cfe/trunk/include/clang/AST/DeclBase.h Mon Jan 19 22:04:17 2009
@@ -457,6 +457,8 @@
/// DenseMap. Othewise, it is an array.
bool isLookupMap() const { return LookupPtr.getInt() == LookupIsMap; }
+ static Decl *getNextDeclInScope(Decl *D) { return D->NextDeclInScope; }
+
protected:
DeclContext(Decl::Kind K)
: DeclKind(K), LookupPtr(), FirstDecl(0), LastDecl(0) { }
@@ -809,7 +811,7 @@
}
inline DeclContext::decl_iterator& DeclContext::decl_iterator::operator++() {
- Current = Current->NextDeclInScope;
+ Current = getNextDeclInScope(Current);
return *this;
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits