projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a8aca4
)
[ARM] Mark labels in skipAlignedDPRCS2Spills as fallthrough (NFC).
author
Florian Hahn
<florian.hahn@arm.com>
Thu, 27 Jul 2017 14:37:17 +0000
(14:37 +0000)
committer
Florian 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.
llvm-svn: 309272
llvm/lib/Target/ARM/ARMFrameLowering.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/ARM/ARMFrameLowering.cpp
b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
index
16b54e8
..
b204faa
100644
(file)
--- 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: