[llvm] 1590d39 - [X86] Use default member initialization (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 18 12:08:11 PDT 2022
Author: Kazu Hirata
Date: 2022-06-18T12:08:07-07:00
New Revision: 1590d39f2e09d3e39776b88a27cb3dec4ffd79ad
URL: https://github.com/llvm/llvm-project/commit/1590d39f2e09d3e39776b88a27cb3dec4ffd79ad
DIFF: https://github.com/llvm/llvm-project/commit/1590d39f2e09d3e39776b88a27cb3dec4ffd79ad.diff
LOG: [X86] Use default member initialization (NFC)
Identified with modernize-use-default-member-init.
Added:
Modified:
llvm/lib/Target/X86/X86FloatingPoint.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86FloatingPoint.cpp b/llvm/lib/Target/X86/X86FloatingPoint.cpp
index 34cf2b1c5f6d..33f5bb365da8 100644
--- a/llvm/lib/Target/X86/X86FloatingPoint.cpp
+++ b/llvm/lib/Target/X86/X86FloatingPoint.cpp
@@ -99,17 +99,17 @@ namespace {
// but the exact mapping of FP registers to stack slots is fixed later.
struct LiveBundle {
// Bit mask of live FP registers. Bit 0 = FP0, bit 1 = FP1, &c.
- unsigned Mask;
+ unsigned Mask = 0;
// Number of pre-assigned live registers in FixStack. This is 0 when the
// stack order has not yet been fixed.
- unsigned FixCount;
+ unsigned FixCount = 0;
// Assigned stack order for live-in registers.
// FixStack[i] == getStackEntry(i) for all i < FixCount.
unsigned char FixStack[8];
- LiveBundle() : Mask(0), FixCount(0) {}
+ LiveBundle() = default;
// Have the live registers been assigned a stack order yet?
bool isFixed() const { return !Mask || FixCount; }
More information about the llvm-commits
mailing list