[AArch64] Silence fallthrough warning. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 10 Jun 2021 15:23:37 +0000 (17:23 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 10 Jun 2021 15:23:37 +0000 (17:23 +0200)
AArch64TargetTransformInfo.cpp:302:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
  default:
    ^

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

index fea0d58..7de516d 100644 (file)
@@ -298,6 +298,7 @@ AArch64TTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
       return LegalisationCost.first * Entry->Cost + 1;
     if (Entry)
       return LegalisationCost.first * Entry->Cost;
+    break;
   }
   default:
     break;