Encountered a crash while running a debug build, where this code path would be taken due to a mismatch in profile coverage data versions. Without consuming the error, an assert would be triggered inside the destructor of Error.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Please add a test. I think I've reproduced the bug with this:
~/src/gh-llvm-project-main/llvm/test/tools/llvm-profdata (0) % cat merge-incompatible.test RUN: not llvm-profdata merge %p/Inputs/fe-basic.proftext %p/Inputs/ir-basic.proftext -o /dev/null ~/src/gh-llvm-project-main/llvm/test/tools/llvm-profdata (0) % cat Inputs/{fe,ir}-basic.proftext :fe foo 29667547796 2 100 90 :ir foo2 29667547796 2 100 90
Comment Actions
Thanks a lot for the help.
I have now added tests that reproduce the issue and also ensure the error is emitted.