llvm-project
424b9cf4 - [Coverage][clang] Ensure bitmap for ternary condition is updated before visiting children (#78814)

Commit
1 year ago
[Coverage][clang] Ensure bitmap for ternary condition is updated before visiting children (#78814) This is a fix for MC/DC issue https://github.com/llvm/llvm-project/issues/78453 in which a ConditionalOperator that evaluates a complex condition was incorrectly updating its global bitmap after visiting its LHS and RHS children. This was wrong because if the LHS or RHS also evaluate a complex condition, the MCDC temporary bitmap value will get corrupted. The fix is to ensure that the bitmap is updated prior to visiting the LHS and RHS.
Author
Parents
Loading