summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2017-01-26 08:31:14 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2017-01-26 08:31:14 +0000
commit82579da8890fcbfb1f4660eb5de74352afe1e60f (patch)
tree1a31721ccd4f6a88482a8a71b8a02b166aa425e5 /examples
parentac9b2d97ef293789d82794718f00e20cc31f6091 (diff)
Chapter3/KaleidoscopeJIT.h: Fix a warning. [-Wunused-lambda-capture]
"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
Diffstat (limited to 'examples')
-rw-r--r--examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h b/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h
index 5ecc869f80f..eefe6a551fa 100644
--- a/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h
+++ b/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h
@@ -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())) {