]> granicus.if.org Git - llvm/commitdiff
Chapter3/KaleidoscopeJIT.h: Fix a warning. [-Wunused-lambda-capture]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 26 Jan 2017 08:31:14 +0000 (08:31 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 26 Jan 2017 08:31:14 +0000 (08:31 +0000)
"this", aka class members, is not referred in the body.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293159 91177308-0d34-0410-b5e6-96231b3b80d8

examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h

index 5ecc869f80f57491f23d69683832c9907bc7a3a7..eefe6a551fa5264a6155e3c20b670f01e698a7d1 100644 (file)
@@ -70,7 +70,7 @@ public:
         CompileCallbackManager(
             orc::createLocalCompileCallbackManager(TM->getTargetTriple(), 0)),
         CODLayer(OptimizeLayer,
-                 [this](Function &F) { return std::set<Function*>({&F}); },
+                 [](Function &F) { return std::set<Function*>({&F}); },
                  *CompileCallbackManager,
                  orc::createLocalIndirectStubsManagerBuilder(
                    TM->getTargetTriple())) {