================ @@ -723,7 +737,15 @@ struct MCDCCoverageBuilder { if (I == CondIDs.end()) return -1; else - return I->second; + return I->second.ID; + } + + void ccc(const Expr *CondExpr, mcdc::ConditionIDs IDs) { + auto ID = getCondID(CondExpr); + if (ID < 0) + return; + if (!cache.contains(ID)) + cache[ID] = IDs; ---------------- chapuni wrote:
I wonder `cache` could be retrieved from other existing records. https://github.com/llvm/llvm-project/pull/82448 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits