Skip to content

Commit e400e90

Browse files
committed
[ORC] Fix SpeculativeJIT example after 7da6342 (ORC dispatch unification).
Fixes the bot failure at https://lab.llvm.org/buildbot/#/builders/272/builds/14788. Coding my way home: 6.48551S, 128.21109W
1 parent 945eeb2 commit e400e90

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ class SpeculativeJIT {
4949
if (!DL)
5050
return DL.takeError();
5151

52-
auto EPC = SelfExecutorProcessControl::Create();
52+
auto EPC = SelfExecutorProcessControl::Create(
53+
nullptr,
54+
std::make_unique<DynamicThreadPoolTaskDispatcher>(std::nullopt));
5355
if (!EPC)
5456
return EPC.takeError();
5557

@@ -116,14 +118,6 @@ class SpeculativeJIT {
116118
std::move(ISMBuilder)) {
117119
MainJD.addGenerator(std::move(ProcessSymbolsGenerator));
118120
this->CODLayer.setImplMap(&Imps);
119-
this->ES->setDispatchTask(
120-
[this](std::unique_ptr<Task> T) {
121-
CompileThreads.async(
122-
[UnownedT = T.release()]() {
123-
std::unique_ptr<Task> T(UnownedT);
124-
T->run();
125-
});
126-
});
127121
ExitOnErr(S.addSpeculationRuntime(MainJD, Mangle));
128122
LocalCXXRuntimeOverrides CXXRuntimeoverrides;
129123
ExitOnErr(CXXRuntimeoverrides.enable(MainJD, Mangle));

0 commit comments

Comments
 (0)