[llvm] [NFC][AsmParser] Fix unchecked return value in AsmParser::parseIdentifier (PR #182448)
Jaydeep Chauhan via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 20 00:25:06 PST 2026
================
@@ -2917,7 +2917,8 @@ bool AsmParser::parseIdentifier(StringRef &Res) {
// Consume the prefix character, and check for a following identifier.
AsmToken Buf[1];
- Lexer.peekTokens(Buf, false);
+ if (Lexer.peekTokens(Buf, false) == 0)
----------------
JaydeepChauhan14 wrote:
Thank you @MaskRay . Let me close the PR.
https://github.com/llvm/llvm-project/pull/182448
More information about the llvm-commits
mailing list