Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[llvm-cov] - Output better error message when the error kind is coveragemap_error::malforme. #65264

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

MaggieYingYi
Copy link
Contributor

The current llvm-cov error message for kind coveragemap_error::malforme, just gives the issue kind without any reason for what caused the issue. This patch is aimed at improving the llvm-cov error message to help identify what caused the issue.

llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp Outdated Show resolved Hide resolved
llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp Outdated Show resolved Hide resolved
llvm/lib/ProfileData/Coverage/CoverageMapping.cpp Outdated Show resolved Hide resolved
@github-actions github-actions bot added the PGO Profile Guided Optimizations label Sep 5, 2023
…ragemap_error::malforme`.

The current llvm-cov error message for kind `coveragemap_error::malforme`, just gives the issue kind without any reason for what caused the issue. This patch is aimed at improving the llvm-cov error message to help identify what caused the issue.

Reviewed By: MaskRay

Close: llvm#65264
@MaggieYingYi MaggieYingYi merged commit cd8fe1d into llvm:main Sep 6, 2023
1 of 2 checks passed
@abrachet
Copy link
Member

abrachet commented Sep 6, 2023

I'm seeing failures in compiler-rt/test/profile/Linux/binary-id-lookup.c after this patch. Looks like the messages need to be updated in that test as well. See https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8770695790398874177/overview

Would you mind taking a look?

@MaggieYingYi
Copy link
Contributor Author

Thanks @abrachet, I am fixing it.

@MaggieYingYi
Copy link
Contributor Author

Fixed in the commit 61d6154.

avillega pushed a commit to avillega/llvm-project that referenced this pull request Sep 11, 2023
…ragemap_error::malforme`. (llvm#65264)

The current llvm-cov error message for kind `coveragemap_error::malforme`, just gives the issue kind without any reason for what caused the issue. This patch is aimed at improving the llvm-cov error message to help identify what caused the issue.

Reviewed By: MaskRay
Close: llvm#65264
whentojump added a commit to xlab-uiuc/llvm-mcdc that referenced this pull request Feb 2, 2024
Currently errors returned from CoverageMappingIterator will have their
message part discarded. This commit copies that message when
constructing the new CoverageMapError object, and let it displayed at
the end caller (llvm-cov).

Related: llvm#65264
whentojump added a commit to xlab-uiuc/llvm-mcdc that referenced this pull request Feb 27, 2024
Currently errors returned from CoverageMappingIterator will have their
message part discarded. This commit copies that message when
constructing the new CoverageMapError object, and let it displayed at
the end caller (llvm-cov).

Related: llvm#65264
qihangkong pushed a commit to rvgpu/llvm that referenced this pull request Apr 18, 2024
…ragemap_error::malforme`. (#65264)

The current llvm-cov error message for kind `coveragemap_error::malforme`, just gives the issue kind without any reason for what caused the issue. This patch is aimed at improving the llvm-cov error message to help identify what caused the issue.

Reviewed By: MaskRay
Close: llvm/llvm-project#65264
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PGO Profile Guided Optimizations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants