diff options
| author | Zequan Wu <zequanwu@google.com> | 2023-03-28 12:55:47 -0400 |
|---|---|---|
| committer | Zequan Wu <zequanwu@google.com> | 2023-04-13 10:53:02 -0400 |
| commit | 0529da5b948cf168f65bec65b0559139f4f5a426 (patch) | |
| tree | c5b085aa3ce5a627fa9e264fef8911f77551cd4c /lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp | |
| parent | ed365f464a0a29da08d0a1011603c4cd337c9428 (diff) | |
| download | llvm-0529da5b948cf168f65bec65b0559139f4f5a426.zip llvm-0529da5b948cf168f65bec65b0559139f4f5a426.tar.gz llvm-0529da5b948cf168f65bec65b0559139f4f5a426.tar.bz2 | |
[Coverage] Handle invalid end location of an expression/statement.
Fix a crash when an expression/statement can have valid start location but invalid end location in some situations. For example: https://github.com/llvm/llvm-project/blob/llvmorg-16.0.1/clang/lib/Sema/SemaExprCXX.cpp#L1536
This confuses `CounterCoverageMappingBuilder` when popping a region from region
stack as if the end location is a macro or include location.
Reviewed By: hans, aaron.ballman
Differential Revision: https://reviews.llvm.org/D147073
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp')
0 files changed, 0 insertions, 0 deletions
