forked from OSchip/llvm-project
[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:
parent
9da51402f4
commit
cf033bb2d3
|
@ -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() {}
|
||||
|
|
Loading…
Reference in New Issue