diff --git a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h index 5ecc869f80f5..eefe6a551fa5 100644 --- a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h +++ b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h @@ -70,7 +70,7 @@ public: CompileCallbackManager( orc::createLocalCompileCallbackManager(TM->getTargetTriple(), 0)), CODLayer(OptimizeLayer, - [this](Function &F) { return std::set({&F}); }, + [](Function &F) { return std::set({&F}); }, *CompileCallbackManager, orc::createLocalIndirectStubsManagerBuilder( TM->getTargetTriple())) {