summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-03-09 18:54:49 +0000
committerJustin Bogner <mail@justinbogner.com>2015-03-09 18:54:49 +0000
commitf95ca0758c2992f59785b2672c8da0ebe55fe439 (patch)
tree22b9e29d27d81073e0aa470652dbf8158c08cd1d /llvm/lib
parent065e3d4cdbc33e924f43c1a6cd6e53ac9116afa3 (diff)
downloadbcm5719-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.cpp2
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.
OpenPOWER on IntegriCloud