[llvm] 705c722 - [examples][BuildingAJIT] Fix use-after-move bug in Chapter 4.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 17 01:00:26 PST 2021
Author: seven-mile
Date: 2021-12-17T20:00:17+11:00
New Revision: 705c722ba5eeaea732d069c39a1b05de9dc2ca6d
URL: https://github.com/llvm/llvm-project/commit/705c722ba5eeaea732d069c39a1b05de9dc2ca6d
DIFF: https://github.com/llvm/llvm-project/commit/705c722ba5eeaea732d069c39a1b05de9dc2ca6d.diff
LOG: [examples][BuildingAJIT] Fix use-after-move bug in Chapter 4.
Reviewed By: lhames
Differential Revision: https://reviews.llvm.org/D115260
Added:
Modified:
llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h
Removed:
################################################################################
diff --git a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h
index 972b8be323667..c5fa183b108de 100644
--- a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h
+++ b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h
@@ -186,7 +186,8 @@ class KaleidoscopeJIT {
if (auto Err = setUpInProcessLCTMReentryViaEPCIU(**EPCIU))
return std::move(Err);
- JITTargetMachineBuilder JTMB((*EPC)->getTargetTriple());
+ JITTargetMachineBuilder JTMB(
+ ES->getExecutorProcessControl().getTargetTriple());
auto DL = JTMB.getDefaultDataLayoutForTarget();
if (!DL)
More information about the llvm-commits
mailing list