[llvm] eed19bd - [NFC] [AIX] [z/OS] Fix build failure on AIX and z/OS

David Tenty via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 15 13:07:40 PDT 2020


Author: Abhina Sreeskantharajan
Date: 2020-07-15T16:07:34-04:00
New Revision: eed19bd84424d3bcd3cc3d2425ad20ad38a55de3

URL: https://github.com/llvm/llvm-project/commit/eed19bd84424d3bcd3cc3d2425ad20ad38a55de3
DIFF: https://github.com/llvm/llvm-project/commit/eed19bd84424d3bcd3cc3d2425ad20ad38a55de3.diff

LOG: [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

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp b/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
index 153f6b80784f..ff1de3810835 100644
--- a/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
@@ -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 {


        


More information about the llvm-commits mailing list