From 78aa4b28a36cae2a9b7276c119aaa4b7fdbb6105 Mon Sep 17 00:00:00 2001 From: Kristof Beyls Date: Tue, 7 Nov 2017 13:31:52 +0000 Subject: [PATCH] Mark intentional fall-through with LLVM_FALLTHROUGH. ... to silence gcc 7's default -Wimplicit-fallthrough. llvm-svn: 317573 --- llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp index caf6600a..074cfa6 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. -- 2.7.4