projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[ProfileData] Test commit for slingn
[oota-llvm.git]
/
lib
/
ProfileData
/
InstrProfReader.cpp
diff --git
a/lib/ProfileData/InstrProfReader.cpp
b/lib/ProfileData/InstrProfReader.cpp
index ff93c4d4e7bc2f7f514047e1a2f2e127477e399c..bda134fe3dbd60a3866ba48c32159c4946a4d07b 100644
(file)
--- a/
lib/ProfileData/InstrProfReader.cpp
+++ b/
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;
}