From a4b30b513d4d1c56060c3277ee734a27ab4f6100 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Mon, 19 Oct 2015 17:53:43 +0000 Subject: [PATCH] [Orc] Lambda needs to capture 'this'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250716 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h b/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h index 926c1a76b5a..9e6eb8032b1 100644 --- a/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h +++ b/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(V)) { // Decls in the original module just get cloned. if (F->isDeclaration()) -- 2.34.1