OSDN Git Service

Attempt to fix buildbot after r361949
authorEugene Leviant <eleviant@accesssoftek.com>
Wed, 29 May 2019 12:26:23 +0000 (12:26 +0000)
committerEugene Leviant <eleviant@accesssoftek.com>
Wed, 29 May 2019 12:26:23 +0000 (12:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361954 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-objcopy/ELF/Object.cpp

index 7a9a1bd..a43fab2 100644 (file)
@@ -276,7 +276,7 @@ void IHexSectionWriterBase::visit(const StringTableSection &Sec) {
   // We are free to pass an invalid pointer to writeSection as long
   // as we don't actually write any data. The real writer class has
   // to override this method .
-  writeSection(&Sec, {nullptr, Sec.Size});
+  writeSection(&Sec, {nullptr, static_cast<size_t>(Sec.Size)});
 }
 
 void IHexSectionWriterBase::visit(const DynamicRelocationSection &Sec) {