[llvm] r332686 - Fix unused lambda capture.

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Thu May 17 19:11:26 PDT 2018


Author: efriedma
Date: Thu May 17 19:11:25 2018
New Revision: 332686

URL: http://llvm.org/viewvc/llvm-project?rev=332686&view=rev
Log:
Fix unused lambda capture.


Modified:
    llvm/trunk/lib/Target/X86/X86InstrInfo.cpp

Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.cpp?rev=332686&r1=332685&r2=332686&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp Thu May 17 19:11:25 2018
@@ -11136,7 +11136,7 @@ X86InstrInfo::getOutlininingCandidateInf
       &RepeatedSequenceLocs) const {
   unsigned SequenceSize = std::accumulate(
       RepeatedSequenceLocs[0].first, std::next(RepeatedSequenceLocs[0].second),
-      0, [this](unsigned Sum, const MachineInstr &MI) {
+      0, [](unsigned Sum, const MachineInstr &MI) {
         // FIXME: x86 doesn't implement getInstSizeInBytes, so we can't
         // tell the cost.  Just assume each instruction is one byte.
         if (MI.isDebugInstr() || MI.isKill())




More information about the llvm-commits mailing list