]> granicus.if.org Git - llvm/commitdiff
[ARM] Mark labels in skipAlignedDPRCS2Spills as fallthrough (NFC).
authorFlorian Hahn <florian.hahn@arm.com>
Thu, 27 Jul 2017 14:37:17 +0000 (14:37 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Thu, 27 Jul 2017 14:37:17 +0000 (14:37 +0000)
The comment at the top of the switch statement indicates that the
fall-through behavior is intentional. By using LLVM_FALLTHROUGH,
-Wimplicit-fallthrough are silenced, which is enabled by default in GCC
7.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309272 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFrameLowering.cpp

index 16b54e8848c23328b9555a4e582aa8921608fbf1..b204faa76f87def020135706682a9d0373c91018 100644 (file)
@@ -1283,9 +1283,11 @@ skipAlignedDPRCS2Spills(MachineBasicBlock::iterator MI,
   case 7:
     ++MI;
     assert(MI->mayStore() && "Expecting spill instruction");
+    LLVM_FALLTHROUGH;
   default:
     ++MI;
     assert(MI->mayStore() && "Expecting spill instruction");
+    LLVM_FALLTHROUGH;
   case 1:
   case 2:
   case 4: