[llvm] bd5b279 - [IR] Use default member initialization in PMDataManager (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 5 21:39:50 PST 2022
Author: Kazu Hirata
Date: 2022-02-05T21:39:17-08:00
New Revision: bd5b279af04a2b6caf85fe2a46b8d9a5b7e8758b
URL: https://github.com/llvm/llvm-project/commit/bd5b279af04a2b6caf85fe2a46b8d9a5b7e8758b
DIFF: https://github.com/llvm/llvm-project/commit/bd5b279af04a2b6caf85fe2a46b8d9a5b7e8758b.diff
LOG: [IR] Use default member initialization in PMDataManager (NFC)
Added:
Modified:
llvm/include/llvm/IR/LegacyPassManagers.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/LegacyPassManagers.h b/llvm/include/llvm/IR/LegacyPassManagers.h
index 311a407f1a194..41c11d26aa456 100644
--- a/llvm/include/llvm/IR/LegacyPassManagers.h
+++ b/llvm/include/llvm/IR/LegacyPassManagers.h
@@ -294,9 +294,7 @@ class PMTopLevelManager {
/// used by pass managers.
class PMDataManager {
public:
- explicit PMDataManager() : TPM(nullptr), Depth(0) {
- initializeAnalysisInfo();
- }
+ explicit PMDataManager() { initializeAnalysisInfo(); }
virtual ~PMDataManager();
@@ -418,7 +416,7 @@ class PMDataManager {
protected:
// Top level manager.
- PMTopLevelManager *TPM;
+ PMTopLevelManager *TPM = nullptr;
// Collection of pass that are managed by this manager
SmallVector<Pass *, 16> PassVector;
@@ -446,7 +444,7 @@ class PMDataManager {
// this manager.
SmallVector<Pass *, 16> HigherLevelAnalysis;
- unsigned Depth;
+ unsigned Depth = 0;
};
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list