[PATCH] D36812: Add support for writing 64-bit symbol tables for archives when offsets become too large for 32-bit

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 16 21:19:11 PDT 2017


phosek added inline comments.


================
Comment at: lib/Object/ArchiveWriter.cpp:502
                       M.ModTime, M.UID, M.GID, M.Perms,
-                      M.Buf->getBufferSize() + Padding);
+                      (uint64_t)M.Buf->getBufferSize() + Padding);
 
----------------
You should use `static_cast` here.


Repository:
  rL LLVM

https://reviews.llvm.org/D36812





More information about the llvm-commits mailing list