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:
parent
26c328d734
commit
b889f8b4b8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue