[lld] r238812 - [Mips] Fix enumeral vs. non-enumeral warning in ternary. NFC

Denis Protivensky dprotivensky at accesssoftek.com
Tue Jun 2 02:22:38 PDT 2015


Author: denis-protivensky
Date: Tue Jun  2 04:22:38 2015
New Revision: 238812

URL: http://llvm.org/viewvc/llvm-project?rev=238812&view=rev
Log:
[Mips] Fix enumeral vs. non-enumeral warning in ternary. NFC

That's a weird gcc's complain.

Modified:
    lld/trunk/lib/ReaderWriter/ELF/Mips/MipsAbiInfoHandler.cpp

Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsAbiInfoHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsAbiInfoHandler.cpp?rev=238812&r1=238811&r2=238812&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsAbiInfoHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsAbiInfoHandler.cpp Tue Jun  2 04:22:38 2015
@@ -441,11 +441,11 @@ template <class ELFT> uint32_t MipsAbiIn
     flags |= isaToHeaderFlags(_abiFlags->_isa);
     flags |= asesToFlags(_abiFlags->_ases);
     flags |= _abiFlags->_abi;
-    flags |= _abiFlags->_isPic ? EF_MIPS_PIC : 0;
-    flags |= _abiFlags->_isCPic ? EF_MIPS_CPIC : 0;
-    flags |= _abiFlags->_isNoReorder ? EF_MIPS_NOREORDER : 0;
-    flags |= _abiFlags->_is32BitMode ? EF_MIPS_32BITMODE : 0;
-    flags |= _abiFlags->_isNan2008 ? EF_MIPS_NAN2008 : 0;
+    flags |= _abiFlags->_isPic ? EF_MIPS_PIC : 0u;
+    flags |= _abiFlags->_isCPic ? EF_MIPS_CPIC : 0u;
+    flags |= _abiFlags->_isNoReorder ? EF_MIPS_NOREORDER : 0u;
+    flags |= _abiFlags->_is32BitMode ? EF_MIPS_32BITMODE : 0u;
+    flags |= _abiFlags->_isNan2008 ? EF_MIPS_NAN2008 : 0u;
   }
   return flags;
 }





More information about the llvm-commits mailing list