OSDN Git Service

[Orc] Add missing capture to lambda.
authorLang Hames <lhames@gmail.com>
Tue, 19 Jan 2016 22:31:01 +0000 (22:31 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 19 Jan 2016 22:31:01 +0000 (22:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258206 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h

index 10255be..3f7f0e7 100644 (file)
@@ -135,7 +135,7 @@ private:
 
     JITSymbol::GetAddressFtor getSymbolMaterializer(std::string Name) override {
       return
-        [this, Name]() {
+        [this, Name, &Finalized]() {
           // The symbol may be materialized between the creation of this lambda
           // and its execution, so we need to double check.
           if (!Finalized)