Page MenuHomePhabricator

D65165.id211609.diff
No OneTemporary

File Metadata

Created
Mon, Feb 17, 8:07 AM

D65165.id211609.diff

Index: lldb/trunk/source/Symbol/Variable.cpp
===================================================================
--- lldb/trunk/source/Symbol/Variable.cpp
+++ lldb/trunk/source/Symbol/Variable.cpp
@@ -59,12 +59,12 @@
return lang;
if (auto *func = m_owner_scope->CalculateSymbolContextFunction()) {
- if ((lang = func->GetLanguage()) && lang != lldb::eLanguageTypeUnknown)
+ if ((lang = func->GetLanguage()) != lldb::eLanguageTypeUnknown)
+ return lang;
+ } else if (auto *comp_unit =
+ m_owner_scope->CalculateSymbolContextCompileUnit()) {
+ if ((lang = comp_unit->GetLanguage()) != lldb::eLanguageTypeUnknown)
return lang;
- else if (auto *comp_unit =
- m_owner_scope->CalculateSymbolContextCompileUnit())
- if ((lang = func->GetLanguage()) && lang != lldb::eLanguageTypeUnknown)
- return lang;
}
return lldb::eLanguageTypeUnknown;

Event Timeline