[PATCH] D60081: [COFF] Fix delay import directory iterator
Joseph Tremoulet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 1 11:13:14 PDT 2019
JosephTremoulet created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
JosephTremoulet added a reviewer: ruiu.
Take the Index into account in `getDelayImportTable`, otherwise we
always return the entry for the first delay DLL reference.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D60081
Files:
llvm/lib/Object/COFFObjectFile.cpp
Index: llvm/lib/Object/COFFObjectFile.cpp
===================================================================
--- llvm/lib/Object/COFFObjectFile.cpp
+++ llvm/lib/Object/COFFObjectFile.cpp
@@ -1457,7 +1457,7 @@
std::error_code DelayImportDirectoryEntryRef::
getDelayImportTable(const delay_import_directory_table_entry *&Result) const {
- Result = Table;
+ Result = &Table[Index];
return std::error_code();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60081.193136.patch
Type: text/x-patch
Size: 420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190401/112a4182/attachment.bin>
More information about the llvm-commits
mailing list