diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-03-09 18:54:49 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-03-09 18:54:49 +0000 |
commit | f95ca0758c2992f59785b2672c8da0ebe55fe439 (patch) | |
tree | 22b9e29d27d81073e0aa470652dbf8158c08cd1d /llvm/lib | |
parent | 065e3d4cdbc33e924f43c1a6cd6e53ac9116afa3 (diff) | |
download | bcm5719-llvm-f95ca0758c2992f59785b2672c8da0ebe55fe439.tar.gz bcm5719-llvm-f95ca0758c2992f59785b2672c8da0ebe55fe439.zip |
InstrProf: Allow hexadecimal function hashes in proftext format
llvm-svn: 231685
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp index 3889b1fb78d..3a5b266016c 100644 --- a/llvm/lib/ProfileData/InstrProfReader.cpp +++ b/llvm/lib/ProfileData/InstrProfReader.cpp @@ -113,7 +113,7 @@ std::error_code TextInstrProfReader::readNextRecord(InstrProfRecord &Record) { // Read the function hash. if (Line.is_at_end()) return error(instrprof_error::truncated); - if ((Line++)->getAsInteger(10, Record.Hash)) + if ((Line++)->getAsInteger(0, Record.Hash)) return error(instrprof_error::malformed); // Read the number of counters. |