[Lldb-commits] [lldb] r142962 - /lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp

Sean Callanan scallanan at apple.com
Tue Oct 25 13:36:57 PDT 2011


Author: spyffe
Date: Tue Oct 25 15:36:57 2011
New Revision: 142962

URL: http://llvm.org/viewvc/llvm-project?rev=142962&view=rev
Log:
Fixed a problem where local variables conflict with
types of the same name.  If a local variable with the
given name is found (and we are not searching a
specific namespace) we stop right then and there and
report it.

Modified:
    lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp

Modified: lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp?rev=142962&r1=142961&r2=142962&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Tue Oct 25 15:36:57 2011
@@ -2443,6 +2443,7 @@
             {
                 AddOneVariable(context, var, current_id);
                 context.m_found.variable = true;
+                return;
             }
         }
         else if (target)





More information about the lldb-commits mailing list