[PATCH] D115260: KaleidoscopeJIT example code dangling std::unique_ptr issue

Lang Hames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 17 01:00:39 PST 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG705c722ba5ee: [examples][BuildingAJIT] Fix use-after-move bug in Chapter 4. (authored by 7mile, committed by lhames).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115260

Files:
  llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h


Index: llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h
===================================================================
--- llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h
+++ llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h
@@ -186,7 +186,8 @@
     if (auto Err = setUpInProcessLCTMReentryViaEPCIU(**EPCIU))
       return std::move(Err);
 
-    JITTargetMachineBuilder JTMB((*EPC)->getTargetTriple());
+    JITTargetMachineBuilder JTMB(
+        ES->getExecutorProcessControl().getTargetTriple());
 
     auto DL = JTMB.getDefaultDataLayoutForTarget();
     if (!DL)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115260.395064.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211217/a7e39134/attachment.bin>


More information about the llvm-commits mailing list