This is currently causing msan warnings in the API tests when run under msan, e.g. commands/gui/basic/TestGuiBasic.py.
I'm not sure if 0 is the right initial value, but the tests pass with it (and msan doesn't complain anymore).
Differential D86825
[lldb/Gui] zero-initialize children_stop_id Authored by rupprecht on Aug 28 2020, 5:03 PM.
Details
This is currently causing msan warnings in the API tests when run under msan, e.g. commands/gui/basic/TestGuiBasic.py. I'm not sure if 0 is the right initial value, but the tests pass with it (and msan doesn't complain anymore).
Diff Detail
Event Timeline
| ||||||||
Or we can inline the simple hard coded values into the definitions:
uint32_t children_stop_id = 0; int row_idx = 0; int x = 1; int y = 1; bool might_have_children = false; bool expanded = false; bool calculated_children = false; std::vector<Row> children; Row(const ValueObjectSP &v, Row *p) : value(v, lldb::eDynamicDontRunTarget, true), parent(p), might_have_children(v ? v->MightHaveChildren() : false) {}