[clang] [llvm] [clang][CoverageMapping] Refactor when setting MC/DC True/False (PR #78202)

Alan Phipps via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 17 18:39:10 PST 2024


================
@@ -722,6 +713,9 @@ struct MCDCCoverageBuilder {
       return I->second;
   }
 
+  /// Return the LHS Decision ([0,0] if not set).
+  const DecisionIDPair back() const { return DecisionStack.back(); }
----------------
evodius96 wrote:

On second thought, could you elaborate on your concern here? I apologize; I know DecisionStack.back() returns a reference, but this ought to now copy that value, right?

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


More information about the cfe-commits mailing list