diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-12 18:39:05 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-12 18:39:05 -0700 |
commit | df792bcb02264574060910b2a1575fe64365f699 (patch) | |
tree | 323f7f3801e85408816e7ddb3fe5c26dde05ab60 /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | |
parent | 92ab024f81e5b64e258b7c3baaf213c7c26fcf40 (diff) | |
download | llvm-df792bcb02264574060910b2a1575fe64365f699.zip llvm-df792bcb02264574060910b2a1575fe64365f699.tar.gz llvm-df792bcb02264574060910b2a1575fe64365f699.tar.bz2 |
[Transforms] Use default member initialization (NFC)
Identified with modernize-use-default-member-init.
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp index 9611342..995809e 100644 --- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp +++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp @@ -163,10 +163,10 @@ struct CHRStats { // RegInfo - some properties of a Region. struct RegInfo { - RegInfo() : R(nullptr), HasBranch(false) {} - RegInfo(Region *RegionIn) : R(RegionIn), HasBranch(false) {} - Region *R; - bool HasBranch; + RegInfo() = default; + RegInfo(Region *RegionIn) : R(RegionIn) {} + Region *R = nullptr; + bool HasBranch = false; SmallVector<SelectInst *, 8> Selects; }; |