[mlir] Use StringRef::{starts,ends}_with (NFC)
This patch replaces uses of StringRef::{starts,ends}with with
StringRef::{starts,ends}_with for consistency with
std::{string,string_view}::{starts,ends}_with in C++20.
I'm planning to deprecate and eventually remove
StringRef::{starts,ends}with.
This commit is contained in:
@@ -2564,7 +2564,7 @@ BytecodeReader::finalize(function_ref<bool(Operation *)> shouldMaterialize) {
|
||||
}
|
||||
|
||||
bool mlir::isBytecode(llvm::MemoryBufferRef buffer) {
|
||||
return buffer.getBuffer().startswith("ML\xefR");
|
||||
return buffer.getBuffer().starts_with("ML\xefR");
|
||||
}
|
||||
|
||||
/// Read the bytecode from the provided memory buffer reference.
|
||||
|
||||
Reference in New Issue
Block a user