labath accepted this revision. labath added a comment. This revision is now accepted and ready to land.
Thanks for responding quickly. LGTM, with one comment.. ================ Comment at: source/Symbol/Variable.cpp:62 if (auto *func = m_owner_scope->CalculateSymbolContextFunction()) { - if ((lang = func->GetLanguage()) && lang != lldb::eLanguageTypeUnknown) + if ((lang = func->GetLanguage())) + return lang; ---------------- if you want to keep the assignment in the if condition, then I think the best way to express that would be to say `if((lang = func->GetLanguage()) != lldb::eLanguageTypeUnknown)`. That way one does not have to wonder "why is this code checking the zero value too and what does that mean?", and the check against `eLanguageTypeUnknown` is still explicit. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65165/new/ https://reviews.llvm.org/D65165 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits