Skip to content

Commit 4187c47

Browse files
fixup! improve formatting
1 parent 388dfb0 commit 4187c47

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,10 @@ RISCVInstructionSelector::renderVLOp(MachineOperand &Root) const {
395395
MIB.addImm(RISCV::VLMaxSentinel);
396396
}}};
397397

398-
if (isUInt<5>(C->getZExtValue()))
399-
return {
400-
{[=](MachineInstrBuilder &MIB) { MIB.addImm(C->getZExtValue()); }}};
398+
if (isUInt<5>(C->getZExtValue())) {
399+
uint64_t ZExtC = C->getZExtValue();
400+
return {{[=](MachineInstrBuilder &MIB) { MIB.addImm(ZExtC); }}};
401+
}
401402
}
402403
return {{[=](MachineInstrBuilder &MIB) { MIB.addReg(Root.getReg()); }}};
403404
}

0 commit comments

Comments
 (0)