Fix a thinko in StackFrame::GetInScopeVariableList.

Reviewers: clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D16745

llvm-svn: 259607
This commit is contained in:
Siva Chandra 2016-02-02 23:49:41 +00:00
parent b87be6c327
commit b90168ff41
1 changed files with 1 additions and 1 deletions

View File

@ -597,7 +597,7 @@ StackFrame::GetInScopeVariableList (bool get_file_globals)
var_list_sp.get());
}
if (m_sc.comp_unit)
if (m_sc.comp_unit && get_file_globals)
{
VariableListSP global_variable_list_sp (m_sc.comp_unit->GetVariableList(true));
if (global_variable_list_sp)