[Lldb-commits] [lldb] r120521 - /lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
Sean Callanan
scallanan at apple.com
Tue Nov 30 17:29:06 PST 2010
Author: spyffe
Date: Tue Nov 30 19:29:06 2010
New Revision: 120521
URL: http://llvm.org/viewvc/llvm-project?rev=120521&view=rev
Log:
Allowed ClangExpressionDeclMap to dematerialize
persistent variables even after the parser has
finished running.
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=120521&r1=120520&r2=120521&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Tue Nov 30 19:29:06 2010
@@ -576,10 +576,11 @@
{
ClangExpressionVariable &member (m_struct_members.VariableAtIndex(member_index));
- if (!member.m_parser_vars.get())
- return false;
+ ClangExpressionVariable *entity = NULL;
+
+ if (member.m_parser_vars.get())
+ entity = m_found_entities.GetVariable(member.m_parser_vars->m_named_decl);
- ClangExpressionVariable *entity = m_found_entities.GetVariable(member.m_parser_vars->m_named_decl);
ClangExpressionVariable *persistent_variable = m_persistent_vars->GetVariable(member.m_name);
if (entity)
More information about the lldb-commits
mailing list