[clang] [MC/DC][Coverage] Add assertions into emitSourceRegions() (PR #89572)

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Mon May 20 05:12:54 PDT 2024


================
@@ -190,6 +190,16 @@ class SourceMappingRegion {
 
   bool isBranch() const { return FalseCount.has_value(); }
 
+  bool isMCDCBranch() const {
+    const auto *BranchParams = std::get_if<mcdc::BranchParameters>(&MCDCParams);
+    assert(BranchParams == nullptr || BranchParams->ID >= 0);
+    return (BranchParams != nullptr);
+  }
+
+  const auto &getMCDCBranchParams() const {
----------------
chapuni wrote:

Removed. (It is in another request)

https://github.com/llvm/llvm-project/pull/89572


More information about the cfe-commits mailing list