aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/InstrProfReader.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2015-12-11 00:40:05 +0000
committerVedant Kumar <vsk@apple.com>2015-12-11 00:40:05 +0000
commit2491dd118f9b83e7fedf97aa7562648a7bd5bc74 (patch)
treeab3a40ad426a227d06ededb385a35bb7bcd3da41 /llvm/lib/ProfileData/InstrProfReader.cpp
parent59898d8c6806990a39c62321a13927dbac8a2029 (diff)
downloadllvm-2491dd118f9b83e7fedf97aa7562648a7bd5bc74.zip
llvm-2491dd118f9b83e7fedf97aa7562648a7bd5bc74.tar.gz
llvm-2491dd118f9b83e7fedf97aa7562648a7bd5bc74.tar.bz2
[ProfileData] clang-format TextInstrProfReader::hasFormat. NFC.
llvm-svn: 255317
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfReader.cpp')
-rw-r--r--llvm/lib/ProfileData/InstrProfReader.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index 10b8fa7..394893d 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -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) {