Skip to content

Commit

Permalink
Replace deprecated starts/endswith
Browse files Browse the repository at this point in the history
`startswith` and `endswith` have been deprecated and are replaced with
`starts_with` and `ends_with`.
  • Loading branch information
Flakebi committed Dec 20, 2023
1 parent 9e2ad76 commit 93de71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dialect/Dialect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ bool llvm_dialects::detail::isOperationDecl(llvm::StringRef fn,
if (isOverloaded) {
if (mnemonic.size() >= fn.size())
return false;
if (!fn.startswith(mnemonic))
if (!fn.starts_with(mnemonic))
return false;

return fn[mnemonic.size()] == '.';
Expand Down

0 comments on commit 93de71f

Please sign in to comment.