[llvm] e6c0e85 - [AArch64] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 2 12:44:08 PDT 2023
Author: Kazu Hirata
Date: 2023-11-02T12:44:01-07:00
New Revision: e6c0e8565cb05d5884de294b546dac85bc11b497
URL: https://github.com/llvm/llvm-project/commit/e6c0e8565cb05d5884de294b546dac85bc11b497
DIFF: https://github.com/llvm/llvm-project/commit/e6c0e8565cb05d5884de294b546dac85bc11b497.diff
LOG: [AArch64] Fix a warning
This patch fixes:
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp:4575:16:
error: 'ParseStatus' is deprecated: Migrate to ParseStatus
[-Werror,-Wdeprecated-declarations]
Added:
Modified:
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
index fed7d02a7a5595a..b3a2c6a915246bb 100644
--- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -4572,7 +4572,7 @@ ParseStatus AArch64AsmParser::tryParseZTOperand(OperandVector &Operands) {
getLoc(), getContext()));
if (parseOptionalToken(AsmToken::Comma))
if (parseOptionalMulOperand(Operands))
- return MatchOperand_ParseFail;
+ return ParseStatus::Failure;
if (parseToken(AsmToken::RBrac, "']' expected"))
return ParseStatus::Failure;
Operands.push_back(
More information about the llvm-commits
mailing list