[llvm-branch-commits] [llvm] [llvm] Extract and propagate indirect call type id (PR #87575)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Mar 12 23:06:26 PDT 2025
================
@@ -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
More information about the llvm-branch-commits
mailing list