Index: llvm-lipo.cpp =================================================================== --- llvm-lipo.cpp +++ llvm-lipo.cpp @@ -688,7 +688,8 @@ return sys::fs::can_execute(S.getBinary()->getFileName()); }); const uint64_t OutputFileSize = - FatArchList.back().offset + FatArchList.back().size; + static_cast(FatArchList.back().offset) + + FatArchList.back().size; Expected> OutFileOrError = FileOutputBuffer::create(OutputFileName, OutputFileSize, IsExecutable ? FileOutputBuffer::F_executable