[DebugInfo][NFC] Zero-initialize a class field

This field gets assigned when the relevant object starts being used; but it
remains uninitialized beforehand. This risks introducing hard-to-detect
bugs if something changes, so zero-initialize the field.
This commit is contained in:
Jeremy Morse 2021-10-19 10:24:12 +01:00
parent 9da51402f4
commit cf033bb2d3
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ public:
/// much later stage, in the TransferTracker class.
MapVector<DebugVariable, DbgValue> Vars;
DenseMap<DebugVariable, const DILocation *> Scopes;
MachineBasicBlock *MBB;
MachineBasicBlock *MBB = nullptr;
public:
VLocTracker() {}