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
This commit is contained in:
Sean Callanan 2011-11-11 18:37:32 +00:00
parent 26c328d734
commit b889f8b4b8
1 changed files with 4 additions and 1 deletions

View File

@ -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