[llvm] [llvm-cov] - Output better error message when the error kind is `coveragemap_error::malforme`. (PR #65264)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 5 03:08:22 PDT 2023
================
@@ -634,7 +648,9 @@ class VersionedCovMapFuncRecordReader : public CovMapFuncRecordReader {
// Get the filenames.
if (CovBuf + FilenamesSize > CovBufEnd)
- return make_error<CoverageMapError>(coveragemap_error::malformed);
+ return make_error<CoverageMapError>(
+ coveragemap_error::malformed,
+ "filenames section is greater than buffer size");
----------------
MaggieYingYi wrote:
Fixed, thanks.
https://github.com/llvm/llvm-project/pull/65264
More information about the llvm-commits
mailing list