OSDN Git Service

[Outliner] Remove unused lambda capture.
authorJessica Paquette <jpaquette@apple.com>
Thu, 23 Mar 2017 22:17:20 +0000 (22:17 +0000)
committerJessica Paquette <jpaquette@apple.com>
Thu, 23 Mar 2017 22:17:20 +0000 (22:17 +0000)
Remove an unused lambda capture that made some bots unhappy.

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

lib/CodeGen/MachineOutliner.cpp

index 09dbf53..2f54630 100644 (file)
@@ -1040,8 +1040,8 @@ MachineOutliner::buildCandidateList(std::vector<Candidate> &CandidateList,
   // Function for maximizing query in the suffix tree.
   // This allows us to define more fine-grained types of things to outline in
   // the target without putting target-specific info in the suffix tree.
-  auto BenefitFn = [&TII, &ST, &Mapper](const SuffixTreeNode &Curr,
-                                          size_t StringLen, unsigned EndVal) {
+  auto BenefitFn = [&TII, &Mapper](const SuffixTreeNode &Curr,
+                                   size_t StringLen, unsigned EndVal) {
 
     // The root represents the empty string.
     if (Curr.isRoot())