[Lldb-commits] [lldb] bf4d73e - [lldb][NFC] Use correct Decl typedef in ClangASTSource
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 4 02:53:55 PST 2020
Author: Raphael Isemann
Date: 2020-02-04T11:53:23+01:00
New Revision: bf4d73e6f3e93cf2c92691a44cff52afc025942d
URL: https://github.com/llvm/llvm-project/commit/bf4d73e6f3e93cf2c92691a44cff52afc025942d
DIFF: https://github.com/llvm/llvm-project/commit/bf4d73e6f3e93cf2c92691a44cff52afc025942d.diff
LOG: [lldb][NFC] Use correct Decl typedef in ClangASTSource
This is iterating over a DeclContext and not a TagDecl (even
though both iterators are the same underlying type).
Added:
Modified:
lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
index 7362a00c76f2..d1560b2987c3 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
@@ -487,7 +487,7 @@ void ClangASTSource::FindExternalLexicalDecls(
// Indicates whether we skipped any Decls of the original DeclContext.
bool SkippedDecls = false;
- for (TagDecl::decl_iterator iter = original_decl_context->decls_begin();
+ for (DeclContext::decl_iterator iter = original_decl_context->decls_begin();
iter != original_decl_context->decls_end(); ++iter) {
Decl *decl = *iter;
More information about the lldb-commits
mailing list