diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfReader.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp index 7683cad6ede..10b8fa781d7 100644 --- a/llvm/lib/ProfileData/InstrProfReader.cpp +++ b/llvm/lib/ProfileData/InstrProfReader.cpp @@ -335,7 +335,8 @@ RawInstrProfReader<IntPtrT>::readNextRecord(InstrProfRecord &Record) { return EC; // Read value data and set Record. - if (std::error_code EC = readValueProfilingData(Record)) return EC; + if (std::error_code EC = readValueProfilingData(Record)) + return EC; // Iterate. advanceData(); @@ -436,7 +437,8 @@ std::error_code InstrProfReaderIndex<HashTableImpl>::getRecords( Data = *RecordIterator; - if (Data.empty()) return instrprof_error::malformed; + if (Data.empty()) + return instrprof_error::malformed; return instrprof_error::success; } |