Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit a4b30b5

Browse files
committed
[Orc] Lambda needs to capture 'this'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250716 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent e6cb054 commit a4b30b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class CompileOnDemandLayer {
232232
// Initializers may refer to functions declared (but not defined) in this
233233
// module. Build a materializer to clone decls on demand.
234234
auto Materializer = createLambdaMaterializer(
235-
[&GVsM, &LMResources](Value *V) -> Value* {
235+
[this, &GVsM, &LMResources](Value *V) -> Value* {
236236
if (auto *F = dyn_cast<Function>(V)) {
237237
// Decls in the original module just get cloned.
238238
if (F->isDeclaration())

0 commit comments

Comments
 (0)