forked from OSchip/llvm-project
[NFC] [AIX] [z/OS] Fix build failure on AIX and z/OS
Summary: This PR contains a build failure fix that occurs on both AIX and z/OS as a result of this commit https://reviews.llvm.org/rG670915094462d831e3733e5b01a76471b8cf6dd8. Reviewers: uweigand, Kai, hubert.reinterpretcast, daltenty, lhames Reviewed By: Kai, hubert.reinterpretcast, daltenty Subscribers: SeanP, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83889
This commit is contained in:
parent
b297563a75
commit
eed19bd844
|
@ -75,11 +75,15 @@ void LazyCallThroughManager::resolveTrampolineLandingAddress(
|
|||
if (!Entry)
|
||||
return NotifyLandingResolved(reportCallThroughError(Entry.takeError()));
|
||||
|
||||
// Declaring SLS outside of the call to ES.lookup is a workaround to fix build
|
||||
// failures on AIX and on z/OS platforms.
|
||||
SymbolLookupSet SLS({Entry->SymbolName});
|
||||
|
||||
ES.lookup(
|
||||
LookupKind::Static,
|
||||
makeJITDylibSearchOrder(Entry->SourceJD,
|
||||
JITDylibLookupFlags::MatchAllSymbols),
|
||||
SymbolLookupSet({Entry->SymbolName}), SymbolState::Ready,
|
||||
std::move(SLS), SymbolState::Ready,
|
||||
[this, TrampolineAddr, SymbolName = Entry->SymbolName,
|
||||
NotifyLandingResolved = std::move(NotifyLandingResolved)](
|
||||
Expected<SymbolMap> Result) mutable {
|
||||
|
|
Loading…
Reference in New Issue