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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357697
91177308-0d34-0410-b5e6-
96231b3b80d8
std::error_code DelayImportDirectoryEntryRef::
getDelayImportTable(const delay_import_directory_table_entry *&Result) const {
- Result = Table;
+ Result = &Table[Index];
return std::error_code();
}