mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[COFF] Fix delay import directory iterator
Summary: Take the Index into account in `getDelayImportTable`, otherwise we always return the entry for the first delay DLL reference. Reviewers: ruiu Reviewed By: ruiu Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D60081 llvm-svn: 357697
This commit is contained in:
parent
9a45e65673
commit
ce7e554a93
@ -1457,7 +1457,7 @@ std::error_code DelayImportDirectoryEntryRef::getName(StringRef &Result) const {
|
||||
|
||||
std::error_code DelayImportDirectoryEntryRef::
|
||||
getDelayImportTable(const delay_import_directory_table_entry *&Result) const {
|
||||
Result = Table;
|
||||
Result = &Table[Index];
|
||||
return std::error_code();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user