[LLDB][NFC][Reliability] Fix uninitialized variables from Coverity scan

Improve LLDB reliability by fixing the following "uninitialized variables" static code inspection warnings from
scan.coverity.com:

1094796 1095721 1095728 1095737 1095741
1095756 1095779 1095789 1095805 1214552
1229457 1232475 1274006 1274010 1293427
1364800 1364802 1364804 1364812 1364816
1374902 1374909 1384975 1399312 1420451
1431704 1454230 1454554 1454615 1454579
1454594 1454832 1457759 1458696 1461909
1467658 1487814 1487830 1487845

Differential Revision: https://reviews.llvm.org/D130098
This commit is contained in:
Slava Gurevich
2022-07-20 13:32:53 -07:00
parent f934b9b073
commit 459cfa5e94
30 changed files with 135 additions and 123 deletions

View File

@@ -4163,7 +4163,7 @@ public:
int m_kernel_types = RSReduceBreakpointResolver::eKernelTypeAll;
llvm::StringRef m_reduce_name;
RSCoordinate m_coord;
bool m_have_coord;
bool m_have_coord = false;
};
Options *GetOptions() override { return &m_options; }
@@ -4268,7 +4268,7 @@ public:
}
RSCoordinate m_coord;
bool m_have_coord;
bool m_have_coord = false;
};
bool DoExecute(Args &command, CommandReturnObject &result) override {