[llvm] r293159 - Chapter3/KaleidoscopeJIT.h: Fix a warning. [-Wunused-lambda-capture]

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 26 00:31:15 PST 2017


Author: chapuni
Date: Thu Jan 26 02:31:14 2017
New Revision: 293159

URL: http://llvm.org/viewvc/llvm-project?rev=293159&view=rev
Log:
Chapter3/KaleidoscopeJIT.h: Fix a warning. [-Wunused-lambda-capture]

"this", aka class members, is not referred in the body.

Modified:
    llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h

Modified: llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h?rev=293159&r1=293158&r2=293159&view=diff
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h (original)
+++ llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h Thu Jan 26 02:31:14 2017
@@ -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())) {




More information about the llvm-commits mailing list