Mark intentional fall-through with LLVM_FALLTHROUGH.
authorKristof Beyls <kristof.beyls@arm.com>
Tue, 7 Nov 2017 13:31:52 +0000 (13:31 +0000)
committerKristof Beyls <kristof.beyls@arm.com>
Tue, 7 Nov 2017 13:31:52 +0000 (13:31 +0000)
... to silence gcc 7's default -Wimplicit-fallthrough.

llvm-svn: 317573

llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp

index caf6600..074cfa6 100644 (file)
@@ -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.