From 24ea09c20cb30715ad4e144b8368439515e903d0 Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Wed, 28 Jan 2015 06:23:15 +0000 Subject: [PATCH] [Mips] Fix enumeral and non-enumeral type in conditional expression warning No functional changes. llvm-svn: 227297 --- lld/lib/ReaderWriter/ELF/Mips/MipsELFFlagsMerger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsELFFlagsMerger.cpp b/lld/lib/ReaderWriter/ELF/Mips/MipsELFFlagsMerger.cpp index 595f9c2777d6..3ae66fedb4b8 100644 --- a/lld/lib/ReaderWriter/ELF/Mips/MipsELFFlagsMerger.cpp +++ b/lld/lib/ReaderWriter/ELF/Mips/MipsELFFlagsMerger.cpp @@ -71,7 +71,7 @@ std::error_code MipsELFFlagsMerger::merge(uint8_t newClass, uint32_t newFlags) { // We support two ABI: O32 and N64. The last one does not have // the corresponding ELF flag. uint32_t inAbi = newFlags & EF_MIPS_ABI; - uint32_t supportedAbi = _is64Bit ? 0 : EF_MIPS_ABI_O32; + uint32_t supportedAbi = _is64Bit ? 0 : uint32_t(EF_MIPS_ABI_O32); if (inAbi != supportedAbi) return make_dynamic_error_code(Twine("Unsupported ABI"));