[llvm] r309272 - [ARM] Mark labels in skipAlignedDPRCS2Spills as fallthrough (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 27 07:37:17 PDT 2017
Author: fhahn
Date: Thu Jul 27 07:37:17 2017
New Revision: 309272
URL: http://llvm.org/viewvc/llvm-project?rev=309272&view=rev
Log:
[ARM] Mark labels in skipAlignedDPRCS2Spills as fallthrough (NFC).
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.
Modified:
llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp?rev=309272&r1=309271&r2=309272&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp Thu Jul 27 07:37:17 2017
@@ -1283,9 +1283,11 @@ skipAlignedDPRCS2Spills(MachineBasicBloc
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:
More information about the llvm-commits
mailing list