[llvm] b66308b - [Bitcode] Modernize PerRecordStats (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun May 28 13:13:31 PDT 2023
Author: Kazu Hirata
Date: 2023-05-28T13:13:14-07:00
New Revision: b66308b81f607abd5edb9aa5f2185ad92dfebfa7
URL: https://github.com/llvm/llvm-project/commit/b66308b81f607abd5edb9aa5f2185ad92dfebfa7
DIFF: https://github.com/llvm/llvm-project/commit/b66308b81f607abd5edb9aa5f2185ad92dfebfa7.diff
LOG: [Bitcode] Modernize PerRecordStats (NFC)
Added:
Modified:
llvm/include/llvm/Bitcode/BitcodeAnalyzer.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Bitcode/BitcodeAnalyzer.h b/llvm/include/llvm/Bitcode/BitcodeAnalyzer.h
index 33a294994618..c7219a52f976 100644
--- a/llvm/include/llvm/Bitcode/BitcodeAnalyzer.h
+++ b/llvm/include/llvm/Bitcode/BitcodeAnalyzer.h
@@ -57,10 +57,10 @@ class BitcodeAnalyzer {
unsigned NumTopBlocks = 0;
struct PerRecordStats {
- unsigned NumInstances;
- unsigned NumAbbrev;
- uint64_t TotalBits;
- PerRecordStats() : NumInstances(0), NumAbbrev(0), TotalBits(0) {}
+ unsigned NumInstances = 0;
+ unsigned NumAbbrev = 0;
+ uint64_t TotalBits = 0;
+ PerRecordStats() = default;
};
struct PerBlockIDStats {
More information about the llvm-commits
mailing list