summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorKristof Beyls <kristof.beyls@arm.com>2017-11-07 13:31:52 +0000
committerKristof Beyls <kristof.beyls@arm.com>2017-11-07 13:31:52 +0000
commit78aa4b28a36cae2a9b7276c119aaa4b7fdbb6105 (patch)
treecaea546c669de7f0afee65ac38130caa36b5352e /llvm/lib/CodeGen
parent46e1fd61021ff06966e672cb38cba0278b9d0b0d (diff)
downloadbcm5719-llvm-78aa4b28a36cae2a9b7276c119aaa4b7fdbb6105.tar.gz
bcm5719-llvm-78aa4b28a36cae2a9b7276c119aaa4b7fdbb6105.zip
Mark intentional fall-through with LLVM_FALLTHROUGH.
... to silence gcc 7's default -Wimplicit-fallthrough. llvm-svn: 317573
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp
index caf6600ac0d..074cfa61a29 100644
--- a/llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp
@@ -279,6 +279,7 @@ LegalizerInfo::findAction(const SizeAndActionsVec &Vec, const uint32_t Size) {
// Special case for scalarization:
if (Vec == SizeAndActionsVec({{1, FewerElements}}))
return {1, FewerElements};
+ LLVM_FALLTHROUGH;
case NarrowScalar: {
// The following needs to be a loop, as for now, we do allow needing to
// go over "Unsupported" bit sizes before finding a legalizable bit size.
OpenPOWER on IntegriCloud