[PATCH] D148814: [Coverity] Fix uninitialized scalar members in MC
Phoebe Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 22 22:16:24 PDT 2023
pengfei added inline comments.
================
Comment at: llvm/include/llvm/MC/MCMachObjectWriter.h:35
public:
- unsigned LocalDifference_RIT;
+ unsigned LocalDifference_RIT = 0u;
----------------
0
================
Comment at: llvm/include/llvm/MC/MCObjectStreamer.h:49
SmallSetVector<MCSection *, 4> PendingLabelSections;
- unsigned CurSubsectionIdx;
+ unsigned CurSubsectionIdx = 0u;
struct PendingMCFixup {
----------------
0
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148814/new/
https://reviews.llvm.org/D148814
More information about the llvm-commits
mailing list