InstrProf: Actually detect bad headers

<rdar://problem/15950346>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith
2014-03-21 20:42:28 +00:00
parent 56db3a97cd
commit ebaeaa934e
4 changed files with 14 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ struct instrprof_error {
success = 0,
eof,
bad_magic,
bad_header,
unsupported_version,
too_large,
truncated,