[Orc] Lambda needs to capture 'this'.

llvm-svn: 250716
This commit is contained in:
Lang Hames 2015-10-19 17:53:43 +00:00
parent 4c17f51b73
commit 80fee77e75
1 changed files with 1 additions and 1 deletions

View File

@ -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())