Skip to content

Commit

Permalink
[RISCV][MC][MSan] Fix uninitialized data members
Browse files Browse the repository at this point in the history
Added in a0d8a53. Some fields are not always initialized.
  • Loading branch information
rupprecht committed Jul 29, 2023
1 parent 9a807b8 commit c956f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class RISCVELFStreamer : public MCELFStreamer {

enum ElfMappingSymbol { EMS_None, EMS_Instructions, EMS_Data };

int64_t MappingSymbolCounter;
int64_t MappingSymbolCounter = 0;
DenseMap<const MCSection *, ElfMappingSymbol> LastMappingSymbols;
ElfMappingSymbol LastEMS;
ElfMappingSymbol LastEMS = EMS_None;

public:
RISCVELFStreamer(MCContext &C, std::unique_ptr<MCAsmBackend> MAB,
Expand Down

0 comments on commit c956f91

Please sign in to comment.