Skip to content

Commit d8b6729

Browse files
Ensure FillRC is always initialised.
1 parent 34d76b9 commit d8b6729

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6288,10 +6288,9 @@ MachineInstr *AArch64InstrInfo::foldMemoryOperandImpl(
62886288
// LDRWui %0:sub_32<def,read-undef>, %stack.0
62896289
//
62906290
if (IsFill && SrcMO.getSubReg() == 0 && DstMO.isUndef()) {
6291-
const TargetRegisterClass *FillRC;
6291+
const TargetRegisterClass *FillRC = nullptr;
62926292
switch (DstMO.getSubReg()) {
62936293
default:
6294-
FillRC = nullptr;
62956294
break;
62966295
case AArch64::sub_32:
62976296
if (AArch64::GPR64RegClass.hasSubClassEq(getRegClass(DstReg)))

0 commit comments

Comments
 (0)