[llvm] [Coverage] MCDC: Move findIndependencePairs deferred into MCDCRecord (PR #121188)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 5 22:57:50 PST 2025
================
@@ -507,7 +511,8 @@ struct MCDCRecord {
/// via PosToID[].
TVRowPair getConditionIndependencePair(unsigned Condition) {
assert(isConditionIndependencePairCovered(Condition));
- return IndependencePairs[PosToID[Condition]];
+ assert(IndependencePairs);
----------------
MaskRay wrote:
assert is unneeded due to immediate dereference
https://github.com/llvm/llvm-project/pull/121188
More information about the llvm-commits
mailing list