aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorYing Yi <maggieyi666@gmail.com>2023-02-17 11:42:20 +0000
committerYing Yi <maggieyi666@gmail.com>2023-03-02 09:14:44 +0000
commit94dd4766a61bb18b263415e17e745dc2fa609162 (patch)
tree6ed56c735e45b6a5fb33928e0491df6197d63712 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parentd94e8479fcd7cd57fa9c6f3f3aa24d2ad3e11d89 (diff)
downloadllvm-94dd4766a61bb18b263415e17e745dc2fa609162.zip
llvm-94dd4766a61bb18b263415e17e745dc2fa609162.tar.gz
llvm-94dd4766a61bb18b263415e17e745dc2fa609162.tar.bz2
[Coverage] Fix an issue: a statement after calling 'assert()' function is wrongly
marked as 'not executed'. In the current coverage mapping implementation, we terminate the current region and start a zero region when we hit a nonreturn function. However, for logical OR, the second operand is not executed if the first operand evaluates to true. If the nonreturn function is called in the right side of logical OR and the left side of logical OR is TRUE, we should not start a zero `GapRegionCounter`. This will also apply to `VisitAbstractConditionalOperator`. Fixes https://github.com/llvm/llvm-project/issues/59030 Reviewed By: zequanwu Differential Revision: https://reviews.llvm.org/D144371
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions