[PATCH] D29892: ar: add llvm-dlltool support
Martell Malone via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 14 15:01:39 PDT 2017
martell added inline comments.
================
Comment at: lib/Object/COFFImportFile.cpp:559-560
+ // Copied here so we can still use writeStringTable
+ memcpy(Alloc.Allocate<char>(Buffer.size()), Buffer.data(), Buffer.size());
+ return {MemoryBufferRef(StringRef(Buf, Buffer.size()), DLLName)};
+}
----------------
ruiu wrote:
> This must not be correct. You are memcpy'ing to some memory region and returning something different.
In a cleanup I removed `char *Buf` so simplify not even realising I needed that reference.
Should be good now. Sorry for the confusion.
Repository:
rL LLVM
https://reviews.llvm.org/D29892
More information about the llvm-commits
mailing list