[Lldb-commits] [lldb] [llvm] [AArch64][llvm] Tighten SYSP parsing; don't disassemble invalid encodings (PR #182410)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 11 09:14:08 PDT 2026
================
@@ -4265,9 +4219,9 @@ bool AArch64AsmParser::parseSyspAlias(StringRef Name, SMLoc NameLoc,
if (Tok.isNot(AsmToken::Identifier))
return TokError("expected register identifier");
- auto Result = tryParseSyspXzrPair(Operands);
- if (Result.isNoMatch())
- Result = tryParseGPRSeqPair(Operands);
+ auto Result = tryParseConsecutiveGPRSeqPair</*AllowXZRPair=*/true>(Operands);
+ if (Result.isFailure())
+ return true;
----------------
CarolineConcatto wrote:
Why we are not testing anymore Result.isNoMatch()?
What is the difference between Result.isFailure() and Result.isSuccess()
https://github.com/llvm/llvm-project/pull/182410
More information about the lldb-commits
mailing list