From 742ec3abb876cccf122de4cd92dbbc82dd6f52b2 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 13 Feb 2024 23:13:34 +0900 Subject: MCDCTypes.h: Add ctors, fixup for #81227 --- llvm/include/llvm/ProfileData/Coverage/MCDCTypes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/include/llvm/ProfileData/Coverage/MCDCTypes.h b/llvm/include/llvm/ProfileData/Coverage/MCDCTypes.h index b4e011c..d7520fa 100644 --- a/llvm/include/llvm/ProfileData/Coverage/MCDCTypes.h +++ b/llvm/include/llvm/ProfileData/Coverage/MCDCTypes.h @@ -28,6 +28,8 @@ struct DecisionParameters { unsigned NumConditions; DecisionParameters() = delete; + DecisionParameters(unsigned BitmapIdx, unsigned NumConditions) + : BitmapIdx(BitmapIdx), NumConditions(NumConditions) {} }; struct BranchParameters { @@ -36,6 +38,8 @@ struct BranchParameters { ConditionID ID, TrueID, FalseID; BranchParameters() = delete; + BranchParameters(ConditionID ID, ConditionID TrueID, ConditionID FalseID) + : ID(ID), TrueID(TrueID), FalseID(FalseID) {} }; /// The type of MC/DC-specific parameters. -- cgit v1.1