r252047 - Silence "enumeral and non-enumeral type in conditional expression" warning; NFC.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 4 06:43:43 PST 2015


Author: aaronballman
Date: Wed Nov  4 08:43:43 2015
New Revision: 252047

URL: http://llvm.org/viewvc/llvm-project?rev=252047&view=rev
Log:
Silence "enumeral and non-enumeral type in conditional expression" warning; NFC.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=252047&r1=252046&r2=252047&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Nov  4 08:43:43 2015
@@ -6244,7 +6244,7 @@ StringRef arm::getLLVMArchSuffixForARM(S
     // FIXME: horrible hack to get around the fact that Cortex-A7 is only an
     // armv7k triple if it's actually been specified via "-arch armv7k".
     ArchKind = (Arch == "armv7k" || Arch == "thumbv7k")
-                          ? llvm::ARM::AK_ARMV7K
+                          ? (unsigned)llvm::ARM::AK_ARMV7K
                           : llvm::ARM::parseCPUArch(CPU);
   }
   if (ArchKind == llvm::ARM::AK_INVALID)




More information about the cfe-commits mailing list