[PATCH] D99457: [llvm-profdata] Make sure to consume Error on the error path of setIsIRLevelProfile
Vedant Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 29 09:31:14 PDT 2021
vsk added a comment.
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
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99457/new/
https://reviews.llvm.org/D99457
More information about the llvm-commits
mailing list