llvm-project/llvm/test/tools/llvm-profdata/Inputs/sample-empty-lines.proftext
William Huang 84719e2f03 [llvm-profdata] Fix bug llvm-profdata crashes when reading a text sample profile with an empty line with spaces.
Text editors can introduce spaces aligning the previous line's indentation. This crashes llvm-profdata. Added check to handle this case.

Reviewed By: snehasish

Differential Revision: https://reviews.llvm.org/D143369
2023-02-06 22:29:20 +00:00

10 lines
46 B
Plaintext

main:10:1
2: 3
3: inline1:5
4: 1