Skip to content

Commit

Permalink
RegisterPressure.h - consistently initialize all pointer fields. NFC.
Browse files Browse the repository at this point in the history
Silence static analyser warning - we're initializing some fields but not others.
  • Loading branch information
RKSimon committed Feb 12, 2023
1 parent 1300a4f commit 41328d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/include/llvm/CodeGen/RegisterPressure.h
Expand Up @@ -358,7 +358,7 @@ class RegPressureTracker {
const MachineFunction *MF = nullptr;
const TargetRegisterInfo *TRI = nullptr;
const RegisterClassInfo *RCI = nullptr;
const MachineRegisterInfo *MRI;
const MachineRegisterInfo *MRI = nullptr;
const LiveIntervals *LIS = nullptr;

/// We currently only allow pressure tracking within a block.
Expand Down

0 comments on commit 41328d7

Please sign in to comment.