[PATCH] D83889: [NFC] [AIX] [z/OS] Fix build failure on AIX and z/OS

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


This revision was automatically updated to reflect the committed changes.
Closed by commit rGeed19bd84424: [NFC] [AIX] [z/OS] Fix build failure on AIX and z/OS (authored by abhina.sreeskantharajan, committed by daltenty).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83889/new/

https://reviews.llvm.org/D83889

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


Index: llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
+++ llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
@@ -75,11 +75,15 @@
   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 {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83889.278290.patch
Type: text/x-patch
Size: 958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200715/e96f5440/attachment.bin>


More information about the llvm-commits mailing list