Avoid fallthrough after ffb109b6852d248c9d2e3202477dccf20aac7151
authorJordan Rupprecht <rupprecht@google.com>
Fri, 11 Nov 2022 06:05:09 +0000 (22:05 -0800)
committerJordan Rupprecht <rupprecht@google.com>
Fri, 11 Nov 2022 06:05:09 +0000 (22:05 -0800)
Fallthrough appears to be not intended here, as otherwise this is a completely dead store: `DOPRegIsUnique` will be overwritten by the next case.

llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp

index 7bfb8c8..e903c52 100644 (file)
@@ -492,6 +492,7 @@ bool AArch64ExpandPseudo::expand_DestructiveOp(
   switch (DType) {
   case AArch64::DestructiveBinary:
     DOPRegIsUnique = DstReg != MI.getOperand(SrcIdx).getReg();
+    break;
   case AArch64::DestructiveBinaryComm:
   case AArch64::DestructiveBinaryCommWithRev:
     DOPRegIsUnique =