[PATCH] D143369: [llvm-profdata] Fix bug llvm-profdata crashes when reading a text sample profile with an empty line with spaces.
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 25 03:45:43 PDT 2023
ro added a comment.
I've taken the smallest failing testcase (`LLVM :: tools/llvm-profdata/sample-remap.test`) and reduced it further to
$ cat in
main:184019:0
4: 534
4.2: 534
$ llvm-profdata merge -sample -text in -o out
Without your patch, the output is identical to the input, with it, I get
main:184019:0
4: 1068
instead. I'm completely unfamiliar with both the input format and the code, so I've not yet tried looking deeper.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143369/new/
https://reviews.llvm.org/D143369
More information about the llvm-commits
mailing list