aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/InstrProfReader.cpp
diff options
context:
space:
mode:
authorNathan Slingerland <slingn@gmail.com>2015-10-11 13:30:56 +0000
committerNathan Slingerland <slingn@gmail.com>2015-10-11 13:30:56 +0000
commit5e896ce2d1e5533141d753178fc2113886780f88 (patch)
tree5f754aa33dbe265380c6592ef8beb21114e292a6 /llvm/lib/ProfileData/InstrProfReader.cpp
parent9b1f9c8b61192980d6ae81f24e7b697638a11223 (diff)
downloadllvm-5e896ce2d1e5533141d753178fc2113886780f88.zip
llvm-5e896ce2d1e5533141d753178fc2113886780f88.tar.gz
llvm-5e896ce2d1e5533141d753178fc2113886780f88.tar.bz2
[ProfileData] Test commit for slingn
This is a test of the LLVM commit system. In the event of a real commit there would be some useful code changes. llvm-svn: 249972
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfReader.cpp')
-rw-r--r--llvm/lib/ProfileData/InstrProfReader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index ff93c4d..bda134f 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -408,6 +408,7 @@ bool IndexedInstrProfReader::hasFormat(const MemoryBuffer &DataBuffer) {
using namespace support;
uint64_t Magic =
endian::read<uint64_t, little, aligned>(DataBuffer.getBufferStart());
+ // verify that it's magical
return Magic == IndexedInstrProf::Magic;
}