Skip to content

Commit 93de71f

Browse files
committed
Replace deprecated starts/endswith
`startswith` and `endswith` have been deprecated and are replaced with `starts_with` and `ends_with`.
1 parent 9e2ad76 commit 93de71f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Dialect/Dialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ bool llvm_dialects::detail::isOperationDecl(llvm::StringRef fn,
279279
if (isOverloaded) {
280280
if (mnemonic.size() >= fn.size())
281281
return false;
282-
if (!fn.startswith(mnemonic))
282+
if (!fn.starts_with(mnemonic))
283283
return false;
284284

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

0 commit comments

Comments
 (0)