[PATCH] D132313: [Orc] Memory Mapper fixes

Anubhab Ghosh via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 21 04:08:57 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5df428eac37f: [Orc] Actually save the callback (authored by argentite).

Changed prior to commit:
  https://reviews.llvm.org/D132313?vs=454288&id=454294#toc

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132313

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


Index: llvm/lib/ExecutionEngine/Orc/MapperJITLinkMemoryManager.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Orc/MapperJITLinkMemoryManager.cpp
+++ llvm/lib/ExecutionEngine/Orc/MapperJITLinkMemoryManager.cpp
@@ -12,8 +12,6 @@
 #include "llvm/ExecutionEngine/JITLink/JITLink.h"
 #include "llvm/Support/Process.h"
 
-#include <limits>
-
 using namespace llvm::jitlink;
 
 namespace llvm {
@@ -34,7 +32,8 @@
     std::swap(AI.Segments, Segs);
     std::swap(AI.Actions, G.allocActions());
 
-    Parent.Mapper->initialize(AI, [&](Expected<ExecutorAddr> Result) {
+    Parent.Mapper->initialize(AI, [OnFinalize = std::move(OnFinalize)](
+                                      Expected<ExecutorAddr> Result) mutable {
       if (!Result) {
         OnFinalize(Result.takeError());
         return;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132313.454294.patch
Type: text/x-patch
Size: 848 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220821/8487a4d4/attachment.bin>


More information about the llvm-commits mailing list