From 467ed8eec226efa0eda216db0b9c4d6ed098550d Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Mon, 22 Oct 2018 10:40:52 +0000 Subject: [PATCH] [ARM][AArch64] Add LLVM_FALLTHROUGH to silence warning [NFC] 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Driver/ToolChains/Gnu.cpp b/lib/Driver/ToolChains/Gnu.cpp index 7a0be206cb..c397f05749 100644 --- a/lib/Driver/ToolChains/Gnu.cpp +++ b/lib/Driver/ToolChains/Gnu.cpp @@ -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, -- 2.40.0