Skip to content

Commit 4536ad4

Browse files
committed
[RISCV] Fix clang-tidy warning about else after return. NFC
1 parent 37b26bf commit 4536ad4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,9 @@ void RISCVInsertVSETVLI::doLocalPostpass(MachineBasicBlock &MBB) {
15511551
ToDelete.push_back(&MI);
15521552
// Leave NextMI unchanged
15531553
continue;
1554-
} else if (canMutatePriorConfig(MI, *NextMI, Used, *MRI)) {
1554+
}
1555+
1556+
if (canMutatePriorConfig(MI, *NextMI, Used, *MRI)) {
15551557
if (!isVLPreservingConfig(*NextMI)) {
15561558
MI.getOperand(0).setReg(NextMI->getOperand(0).getReg());
15571559
MI.getOperand(0).setIsDead(false);

0 commit comments

Comments
 (0)