I messed up the logic for this. Fixing with some improvements suggested
by Pavel.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks for responding quickly. LGTM, with one comment..
source/Symbol/Variable.cpp | ||
---|---|---|
62 ↗ | (On Diff #211352) | 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. |
Comment Actions
Don't use checks that assume eLanguageTypeUnknown == 0, that seems really confusing and we don't use that practice anywhere else. Pavel's suggestion seems fine.