[lld] r326209 - Fix gcc warning.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 27 09:11:11 PST 2018
Author: rafael
Date: Tue Feb 27 09:11:10 2018
New Revision: 326209
URL: http://llvm.org/viewvc/llvm-project?rev=326209&view=rev
Log:
Fix gcc warning.
Should fix the build in some bots.
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=326209&r1=326208&r2=326209&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Tue Feb 27 09:11:10 2018
@@ -136,7 +136,8 @@ void OutputSection::addSection(InputSect
}
IS->Parent = this;
- uint64_t AndMask = Config->EMachine == EM_ARM ? SHF_ARM_PURECODE : 0;
+ uint64_t AndMask =
+ Config->EMachine == EM_ARM ? (uint64_t)SHF_ARM_PURECODE : 0;
uint64_t OrMask = ~AndMask;
uint64_t AndFlags = (Flags & IS->Flags) & AndMask;
uint64_t OrFlags = (Flags | IS->Flags) & OrMask;
More information about the llvm-commits
mailing list