[all-commits] [llvm/llvm-project] 84719e: [llvm-profdata] Fix bug llvm-profdata crashes when...
William Junda Huang via All-commits
all-commits at lists.llvm.org
Mon Feb 6 14:30:52 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 84719e2f038751b0c76d668413934dd54f720e84
https://github.com/llvm/llvm-project/commit/84719e2f038751b0c76d668413934dd54f720e84
Author: William Huang <williamjhuang at google.com>
Date: 2023-02-06 (Mon, 06 Feb 2023)
Changed paths:
M llvm/lib/ProfileData/SampleProfReader.cpp
A llvm/test/tools/llvm-profdata/Inputs/sample-empty-lines.proftext
A llvm/test/tools/llvm-profdata/sample-empty-lines.test
Log Message:
-----------
[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
More information about the All-commits
mailing list