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

Abhina Sreeskantharajan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 15 10:41:35 PDT 2020


abhina.sreeskantharajan created this revision.
abhina.sreeskantharajan added reviewers: uweigand, Kai, hubert.reinterpretcast, daltenty, lhames.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

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.278242.patch
Type: text/x-patch
Size: 958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200715/0590b0b8/attachment.bin>


More information about the llvm-commits mailing list