diff --git a/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp b/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp index f2007afc9374..2661e42326a6 100644 --- a/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp +++ b/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp @@ -171,7 +171,7 @@ bool Instruction::hasAliasingImplicitRegisters() const { bool Instruction::hasTiedRegisters() const { return llvm::any_of( - Variables, [this](const Variable &Var) { return Var.hasTiedOperands(); }); + Variables, [](const Variable &Var) { return Var.hasTiedOperands(); }); } bool Instruction::hasAliasingRegisters() const {