From b1c1825b9972cf2c77917b8f2fc220946ab70bac Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 29 Jul 2020 13:08:14 -0700 Subject: [PATCH] [X86] Remove unused argument from HandleAVX512Operand in the assembly parser. --- llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp index bb9919a25847..0950cf9e5710 100644 --- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -1000,8 +1000,7 @@ private: /// Parses AVX512 specific operand primitives: masked registers ({%k}, {z}) /// and memory broadcasting ({1to}) primitives, updating Operands vector if required. /// return false if no parsing errors occurred, true otherwise. - bool HandleAVX512Operand(OperandVector &Operands, - const MCParsedAsmOperand &Op); + bool HandleAVX512Operand(OperandVector &Operands); bool ParseZ(std::unique_ptr &Z, const SMLoc &StartLoc); @@ -2313,8 +2312,7 @@ bool X86AsmParser::ParseZ(std::unique_ptr &Z, } // true on failure, false otherwise -bool X86AsmParser::HandleAVX512Operand(OperandVector &Operands, - const MCParsedAsmOperand &Op) { +bool X86AsmParser::HandleAVX512Operand(OperandVector &Operands) { MCAsmParser &Parser = getParser(); if (getLexer().is(AsmToken::LCurly)) { // Eat "{" and mark the current place. @@ -2893,7 +2891,7 @@ bool X86AsmParser::ParseInstruction(ParseInstructionInfo &Info, StringRef Name, while(1) { if (std::unique_ptr Op = ParseOperand()) { Operands.push_back(std::move(Op)); - if (HandleAVX512Operand(Operands, *Operands.back())) + if (HandleAVX512Operand(Operands)) return true; } else { return true;