]> granicus.if.org Git - clang/commitdiff
[ARM][AArch64] Add LLVM_FALLTHROUGH to silence warning [NFC]
authorPeter Smith <peter.smith@linaro.org>
Mon, 22 Oct 2018 10:40:52 +0000 (10:40 +0000)
committerPeter Smith <peter.smith@linaro.org>
Mon, 22 Oct 2018 10:40:52 +0000 (10:40 +0000)
A follow up to D52784 to add in LLVM_FALLTHROUGH where there is an
intentional fall through in a switch statement. This will hopefully silence
a GCC warning.

Differential Revision: https://reviews.llvm.org/D52784

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344890 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/Gnu.cpp

index 7a0be206cb65659facbbcbb5ce9f92359e72238d..c397f05749e4e9734fec44c0f3af8eb3ba59f617 100644 (file)
@@ -239,6 +239,7 @@ static bool isArmBigEndian(const llvm::Triple &Triple,
   case llvm::Triple::armeb:
   case llvm::Triple::thumbeb:
     IsBigEndian = true;
+    LLVM_FALLTHROUGH;
   case llvm::Triple::arm:
   case llvm::Triple::thumb:
     if (Arg *A = Args.getLastArg(options::OPT_mlittle_endian,