Fixed a problem where if a frame was present the
expression parser would never try getting typed
variables from the target.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@146317 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionDeclMap.cpp b/source/Expression/ClangExpressionDeclMap.cpp
index 31abd18..12833ca 100644
--- a/source/Expression/ClangExpressionDeclMap.cpp
+++ b/source/Expression/ClangExpressionDeclMap.cpp
@@ -2541,7 +2541,8 @@
return;
}
}
- else if (target)
+
+ if (target)
{
var = FindGlobalVariable (*target,
module_sp,
@@ -2554,6 +2555,7 @@
valobj = ValueObjectVariable::Create(target, var);
AddOneVariable(context, var, valobj, current_id);
context.m_found.variable = true;
+ return;
}
}