================ @@ -3794,6 +3794,11 @@ void Verifier::visitCallBase(CallBase &Call) { } else if (Tag == LLVMContext::OB_callee_type) { Check(!FoundCalleeTypeBundle, "Multiple \"callee_type\" operand bundles", Call); + auto *OBVal = BU.Inputs.front().get(); + auto *TypeIdMD = cast<MetadataAsValue>(OBVal)->getMetadata(); + auto *TypeIdStr = cast<MDString>(TypeIdMD); + Check(TypeIdStr->getString().ends_with(".generalized"), + "Invalid \"callee_type\" type identifier", Call); ---------------- arsenm wrote:
Mssing verifier test https://github.com/llvm/llvm-project/pull/87575 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits