[llvm] 3dceffd - [AArch64] Silence fallthrough warning. NFC.

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 10 08:24:56 PDT 2021


Author: Benjamin Kramer
Date: 2021-06-10T17:23:37+02:00
New Revision: 3dceffd0fdbc8bfb3b5377b5bbe21b50d443ff43

URL: https://github.com/llvm/llvm-project/commit/3dceffd0fdbc8bfb3b5377b5bbe21b50d443ff43
DIFF: https://github.com/llvm/llvm-project/commit/3dceffd0fdbc8bfb3b5377b5bbe21b50d443ff43.diff

LOG: [AArch64] Silence fallthrough warning. NFC.

AArch64TargetTransformInfo.cpp:302:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
  default:
    ^

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
index fea0d588ef45..7de516ddd543 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -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;


        


More information about the llvm-commits mailing list