diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2019-09-13 11:35:33 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2019-09-13 11:35:33 +0000 |
| commit | ce74c3b19f5b60d427977f21e506c26a3f40bd7f (patch) | |
| tree | 79a6eec3634ad4ca96d1dd881f950093f896ebe9 /llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp | |
| parent | 0d9a201e2624998922f825ebbe01aae0cce4bbd5 (diff) | |
| download | bcm5719-llvm-ce74c3b19f5b60d427977f21e506c26a3f40bd7f.tar.gz bcm5719-llvm-ce74c3b19f5b60d427977f21e506c26a3f40bd7f.zip | |
[Orc] Address the remaining move-capture FIXMEs
This required spreading unique_function a bit more, which I think is a
good thing.
llvm-svn: 371843
Diffstat (limited to 'llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp')
| -rw-r--r-- | llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp b/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp index ff0c18c9584..647413cc9c2 100644 --- a/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp +++ b/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp @@ -114,9 +114,7 @@ private: this->ES->setDispatchMaterialization( [this](JITDylib &JD, std::unique_ptr<MaterializationUnit> MU) { - // FIXME: Switch to move capture once we have c 14. - auto SharedMU = std::shared_ptr<MaterializationUnit>(std::move(MU)); - auto Work = [SharedMU, &JD]() { SharedMU->doMaterialize(JD); }; + auto Work = [MU = std::move(MU), &JD] { MU->doMaterialize(JD); }; CompileThreads.async(std::move(Work)); }); ExitOnErr(S.addSpeculationRuntime(this->ES->getMainJITDylib(), Mangle)); |

