Skip to content

Commit c0396e1

Browse files
[AArch64] Use StringRef::contains_insensitive (NFC)
1 parent fbd00a4 commit c0396e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3858,7 +3858,7 @@ bool AArch64AsmParser::parseSysAlias(StringRef Name, SMLoc NameLoc,
38583858

38593859
Lex(); // Eat operand.
38603860

3861-
bool ExpectRegister = (Op.lower().find("all") == StringRef::npos);
3861+
bool ExpectRegister = !Op.contains_insensitive("all");
38623862
bool HasRegister = false;
38633863

38643864
// Check for the optional register operand.

0 commit comments

Comments
 (0)