[llvm] 742ec3a - MCDCTypes.h: Add ctors, fixup for #81227
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 13 06:16:03 PST 2024
Author: NAKAMURA Takumi
Date: 2024-02-13T23:15:12+09:00
New Revision: 742ec3abb876cccf122de4cd92dbbc82dd6f52b2
URL: https://github.com/llvm/llvm-project/commit/742ec3abb876cccf122de4cd92dbbc82dd6f52b2
DIFF: https://github.com/llvm/llvm-project/commit/742ec3abb876cccf122de4cd92dbbc82dd6f52b2.diff
LOG: MCDCTypes.h: Add ctors, fixup for #81227
Added:
Modified:
llvm/include/llvm/ProfileData/Coverage/MCDCTypes.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ProfileData/Coverage/MCDCTypes.h b/llvm/include/llvm/ProfileData/Coverage/MCDCTypes.h
index b4e011c7024729..d7520fa0824243 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.
More information about the llvm-commits
mailing list