Skip to content

Commit 1590d39

Browse files
[X86] Use default member initialization (NFC)
Identified with modernize-use-default-member-init.
1 parent 7c987bb commit 1590d39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/X86/X86FloatingPoint.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,17 @@ namespace {
9999
// but the exact mapping of FP registers to stack slots is fixed later.
100100
struct LiveBundle {
101101
// Bit mask of live FP registers. Bit 0 = FP0, bit 1 = FP1, &c.
102-
unsigned Mask;
102+
unsigned Mask = 0;
103103

104104
// Number of pre-assigned live registers in FixStack. This is 0 when the
105105
// stack order has not yet been fixed.
106-
unsigned FixCount;
106+
unsigned FixCount = 0;
107107

108108
// Assigned stack order for live-in registers.
109109
// FixStack[i] == getStackEntry(i) for all i < FixCount.
110110
unsigned char FixStack[8];
111111

112-
LiveBundle() : Mask(0), FixCount(0) {}
112+
LiveBundle() = default;
113113

114114
// Have the live registers been assigned a stack order yet?
115115
bool isFixed() const { return !Mask || FixCount; }

0 commit comments

Comments
 (0)