diff options
| author | Lang Hames <lhames@gmail.com> | 2015-10-19 17:53:43 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2015-10-19 17:53:43 +0000 |
| commit | 80fee77e758566356834141f71d694c638790404 (patch) | |
| tree | 7b3fc0799052e5149eb58fb81b2606789d7b52c9 | |
| parent | 4c17f51b738a8a40a78ae9da8502334a3fc40bf8 (diff) | |
| download | bcm5719-llvm-80fee77e758566356834141f71d694c638790404.tar.gz bcm5719-llvm-80fee77e758566356834141f71d694c638790404.zip | |
[Orc] Lambda needs to capture 'this'.
llvm-svn: 250716
| -rw-r--r-- | llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h b/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h index 926c1a76b5a..9e6eb8032b1 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h @@ -232,7 +232,7 @@ private: // Initializers may refer to functions declared (but not defined) in this // module. Build a materializer to clone decls on demand. auto Materializer = createLambdaMaterializer( - [&GVsM, &LMResources](Value *V) -> Value* { + [this, &GVsM, &LMResources](Value *V) -> Value* { if (auto *F = dyn_cast<Function>(V)) { // Decls in the original module just get cloned. if (F->isDeclaration()) |

