From f95ca0758c2992f59785b2672c8da0ebe55fe439 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Mon, 9 Mar 2015 18:54:49 +0000 Subject: InstrProf: Allow hexadecimal function hashes in proftext format llvm-svn: 231685 --- llvm/lib/ProfileData/InstrProfReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') 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. -- cgit v1.2.3