1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.

llvm-svn: 366563
This commit is contained in:
Simon Pilgrim 2019-07-19 11:18:46 +00:00
parent 5b6f9348e5
commit d94781f714

View File

@ -416,7 +416,7 @@ buildFatArchList(ArrayRef<Slice> Slices) {
sizeof(MachO::fat_header) + Slices.size() * sizeof(MachO::fat_arch);
for (size_t Index = 0, Size = Slices.size(); Index < Size; ++Index) {
Offset = alignTo(Offset, 1 << Slices[Index].Alignment);
Offset = alignTo(Offset, 1ull << Slices[Index].Alignment);
const MachOObjectFile *ObjectFile = Slices[Index].ObjectFile;
if (Offset > UINT32_MAX)
reportError("fat file too large to be created because the offset "