diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-06 07:17:58 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-06 07:17:58 +0000 |
commit | d05cb418fd61c8fd5bd4ba2fbfefc3dfd06002da (patch) | |
tree | d16dca34195c599a66c7a7611d7d859ddea86973 /clang/lib/AST/DeclBase.cpp | |
parent | 4f149f261161754dec226f700e7397fc15b5caf0 (diff) | |
download | bcm5719-llvm-d05cb418fd61c8fd5bd4ba2fbfefc3dfd06002da.tar.gz bcm5719-llvm-d05cb418fd61c8fd5bd4ba2fbfefc3dfd06002da.zip |
Minor tweaks to the transparent declcontext patch
llvm-svn: 61798
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r-- | clang/lib/AST/DeclBase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp index 59d8a07bfdd..a21d5db11a3 100644 --- a/clang/lib/AST/DeclBase.cpp +++ b/clang/lib/AST/DeclBase.cpp @@ -513,7 +513,8 @@ void DeclContext::addDecl(ASTContext &Context, ScopedDecl *D, bool AllowLookup) /// transparent contexts nested within it). void DeclContext::buildLookup(ASTContext &Context, DeclContext *DCtx) { for (; DCtx; DCtx = DCtx->getNextContext()) { - for (decl_iterator D = DCtx->decls_begin(); D != DCtx->decls_end(); ++D) { + for (decl_iterator D = DCtx->decls_begin(), DEnd = DCtx->decls_end(); + D != DEnd; ++D) { // Insert this declaration into the lookup structure insertImpl(*D); |