commit | 3a5467639d75d993ab0cb0d8c5ae5cc48ceb44e4 | [log] [tgz] |
---|---|---|
author | Sean Callanan <scallanan@apple.com> | Tue Oct 25 20:36:57 2011 +0000 |
committer | Sean Callanan <scallanan@apple.com> | Tue Oct 25 20:36:57 2011 +0000 |
tree | 0aacfade238f10f3689e4de085e306a37bc9e05d | |
parent | 0409d995d366a12b16ea5bf1ddd9cfdec9783924 [diff] [blame] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@142962 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionDeclMap.cpp b/source/Expression/ClangExpressionDeclMap.cpp index 5566091..1093932 100644 --- a/source/Expression/ClangExpressionDeclMap.cpp +++ b/source/Expression/ClangExpressionDeclMap.cpp
@@ -2443,6 +2443,7 @@ { AddOneVariable(context, var, current_id); context.m_found.variable = true; + return; } } else if (target)