[Lldb-commits] [lldb] r144400 - /lldb/trunk/include/lldb/Expression/ClangASTSource.h

Sean Callanan scallanan at apple.com
Fri Nov 11 10:37:32 PST 2011


Author: spyffe
Date: Fri Nov 11 12:37:32 2011
New Revision: 144400

URL: http://llvm.org/viewvc/llvm-project?rev=144400&view=rev
Log:
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.

Modified:
    lldb/trunk/include/lldb/Expression/ClangASTSource.h

Modified: lldb/trunk/include/lldb/Expression/ClangASTSource.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Expression/ClangASTSource.h?rev=144400&r1=144399&r2=144400&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Expression/ClangASTSource.h (original)
+++ lldb/trunk/include/lldb/Expression/ClangASTSource.h Fri Nov 11 12:37:32 2011
@@ -369,7 +369,10 @@
         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





More information about the lldb-commits mailing list