mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-31 09:22:31 +00:00
[ProfileData] clang-format TextInstrProfReader::hasFormat. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255317 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e265d9a2d4
commit
88b8ce2202
@ -104,8 +104,9 @@ bool TextInstrProfReader::hasFormat(const MemoryBuffer &Buffer) {
|
||||
// 'reasonable' number of characters (up to profile magic size).
|
||||
size_t count = std::min(Buffer.getBufferSize(), sizeof(uint64_t));
|
||||
StringRef buffer = Buffer.getBufferStart();
|
||||
return count == 0 || std::all_of(buffer.begin(), buffer.begin() + count,
|
||||
[](char c) { return ::isprint(c) || ::isspace(c); });
|
||||
return count == 0 ||
|
||||
std::all_of(buffer.begin(), buffer.begin() + count,
|
||||
[](char c) { return ::isprint(c) || ::isspace(c); });
|
||||
}
|
||||
|
||||
std::error_code TextInstrProfReader::readNextRecord(InstrProfRecord &Record) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user