We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4f1994 commit ec75be1Copy full SHA for ec75be1
llvm/lib/Transforms/Vectorize/VPlan.h
@@ -959,6 +959,11 @@ class VPIRMetadata {
959
960
/// Add metadata with kind \p Kind and \p Node.
961
void addMetadata(unsigned Kind, MDNode *Node) {
962
+ assert(none_of(Metadata,
963
+ [Kind](const std::pair<unsigned, MDNode *> &P) {
964
+ return P.first == Kind;
965
+ }) &&
966
+ "Kind must appear at most once in Metadata");
967
Metadata.emplace_back(Kind, Node);
968
}
969
0 commit comments