[llvm] 374e646 - [RISCV] Add missing break to the last case in a switch. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 3 16:24:18 PDT 2022
Author: Craig Topper
Date: 2022-11-03T16:24:02-07:00
New Revision: 374e6462a4c970965d3348bc90a2109056b051c9
URL: https://github.com/llvm/llvm-project/commit/374e6462a4c970965d3348bc90a2109056b051c9
DIFF: https://github.com/llvm/llvm-project/commit/374e6462a4c970965d3348bc90a2109056b051c9.diff
LOG: [RISCV] Add missing break to the last case in a switch. NFC
Might create a problem in the future if more cases are added.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp b/llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
index 5e0613f1e2ab4..a31f898e104d7 100644
--- a/llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
+++ b/llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
@@ -286,6 +286,7 @@ static bool isSignExtendingOpW(MachineInstr &MI, MachineRegisterInfo &MRI,
FixableDef.insert(&MI);
return true;
}
+ break;
}
return false;
More information about the llvm-commits
mailing list