[llvm] r250716 - [Orc] Lambda needs to capture 'this'.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 19 10:53:43 PDT 2015


Author: lhames
Date: Mon Oct 19 12:53:43 2015
New Revision: 250716

URL: http://llvm.org/viewvc/llvm-project?rev=250716&view=rev
Log:
[Orc] Lambda needs to capture 'this'.

Modified:
    llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h

Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h?rev=250716&r1=250715&r2=250716&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h Mon Oct 19 12:53:43 2015
@@ -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())




More information about the llvm-commits mailing list