summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2017-07-27 14:37:17 +0000
committerFlorian Hahn <florian.hahn@arm.com>2017-07-27 14:37:17 +0000
commitdb479524dd94c21e244490cf895fe32b24771a7b (patch)
tree1006d32ddcd326cd3b052abe409652f85276e692 /llvm/lib
parent8a8aca42997bcb09853d716c2778d010e52a009e (diff)
downloadbcm5719-llvm-db479524dd94c21e244490cf895fe32b24771a7b.tar.gz
bcm5719-llvm-db479524dd94c21e244490cf895fe32b24771a7b.zip
[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. llvm-svn: 309272
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMFrameLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
index 16b54e8848c..b204faa76f8 100644
--- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
@@ -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:
OpenPOWER on IntegriCloud