From: Alexander Shaposhnikov Date: Tue, 15 Oct 2019 20:10:34 +0000 (+0000) Subject: [llvm-lipo] Add missing cast X-Git-Tag: llvmorg-11-init~6420 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f2f9c00b978e45a0bb4c229912359e84ad6af11;p=platform%2Fupstream%2Fllvm.git [llvm-lipo] Add missing cast Add missing cast (to correctly sum 32-bit integers). Test plan: make check-all llvm-svn: 374945 --- diff --git a/llvm/tools/llvm-lipo/llvm-lipo.cpp b/llvm/tools/llvm-lipo/llvm-lipo.cpp index ba413b10..a063fce 100644 --- a/llvm/tools/llvm-lipo/llvm-lipo.cpp +++ b/llvm/tools/llvm-lipo/llvm-lipo.cpp @@ -688,7 +688,8 @@ static void createUniversalBinary(SmallVectorImpl &Slices, 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