r344890 - [ARM][AArch64] Add LLVM_FALLTHROUGH to silence warning [NFC]
Peter Smith via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 22 03:40:52 PDT 2018
Author: psmith
Date: Mon Oct 22 03:40:52 2018
New Revision: 344890
URL: http://llvm.org/viewvc/llvm-project?rev=344890&view=rev
Log:
[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
Modified:
cfe/trunk/lib/Driver/ToolChains/Gnu.cpp
Modified: cfe/trunk/lib/Driver/ToolChains/Gnu.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Gnu.cpp?rev=344890&r1=344889&r2=344890&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/Gnu.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/Gnu.cpp Mon Oct 22 03:40:52 2018
@@ -239,6 +239,7 @@ static bool isArmBigEndian(const llvm::T
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,
More information about the cfe-commits
mailing list