[all-commits] [llvm/llvm-project] 0529da: [Coverage] Handle invalid end location of an expre...
Zequan Wu via All-commits
all-commits at lists.llvm.org
Thu Apr 13 07:53:15 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0529da5b948cf168f65bec65b0559139f4f5a426
https://github.com/llvm/llvm-project/commit/0529da5b948cf168f65bec65b0559139f4f5a426
Author: Zequan Wu <zequanwu at google.com>
Date: 2023-04-13 (Thu, 13 Apr 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/CodeGen/CoverageMappingGen.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list