summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-11-11 18:37:32 +0000
committerSean Callanan <scallanan@apple.com>2011-11-11 18:37:32 +0000
commitb889f8b4b83f487c6ed48c5026a83a7a58f25bef (patch)
tree8fc3cdd850f92be2e4665486f0df9af20f5d1b7d
parent26c328d7349076cb2a885076383c7d5f9adf44d6 (diff)
downloadbcm5719-llvm-b889f8b4b83f487c6ed48c5026a83a7a58f25bef.tar.gz
bcm5719-llvm-b889f8b4b83f487c6ed48c5026a83a7a58f25bef.zip
Fixed a bug that inhibited symbol lookup. The
problem is that we had a bitfield that kept track of what had been found so far, and inhibited searches when the local variable bit was set. This bitfield was not being initialized correctly. llvm-svn: 144400
-rw-r--r--lldb/include/lldb/Expression/ClangASTSource.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/include/lldb/Expression/ClangASTSource.h b/lldb/include/lldb/Expression/ClangASTSource.h
index fbc2e06a8d0..030bc4547a2 100644
--- a/lldb/include/lldb/Expression/ClangASTSource.h
+++ b/lldb/include/lldb/Expression/ClangASTSource.h
@@ -369,7 +369,10 @@ struct NameSearchContext {
m_ast_source(astSource),
m_decls(decls),
m_decl_name(name),
- m_decl_context(dc) {}
+ m_decl_context(dc)
+ {
+ memset(&m_found, 0, sizeof(m_found));
+ }
//------------------------------------------------------------------
/// Create a VarDecl with the name being searched for and the provided
OpenPOWER on IntegriCloud