[llvm] 41328d7 - RegisterPressure.h - consistently initialize all pointer fields. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 12 06:57:29 PST 2023
Author: Simon Pilgrim
Date: 2023-02-12T14:55:03Z
New Revision: 41328d7c0e6e16cece22f672841da0e1861e157e
URL: https://github.com/llvm/llvm-project/commit/41328d7c0e6e16cece22f672841da0e1861e157e
DIFF: https://github.com/llvm/llvm-project/commit/41328d7c0e6e16cece22f672841da0e1861e157e.diff
LOG: RegisterPressure.h - consistently initialize all pointer fields. NFC.
Silence static analyser warning - we're initializing some fields but not others.
Added:
Modified:
llvm/include/llvm/CodeGen/RegisterPressure.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/RegisterPressure.h b/llvm/include/llvm/CodeGen/RegisterPressure.h
index 1164b60a11eb6..6fa19c50c6c8c 100644
--- a/llvm/include/llvm/CodeGen/RegisterPressure.h
+++ b/llvm/include/llvm/CodeGen/RegisterPressure.h
@@ -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.
More information about the llvm-commits
mailing list