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.
2 parents 2f763c0 + 5857d51 commit 5e6675bCopy full SHA for 5e6675b
llvm/lib/IR/Verifier.cpp
@@ -3794,6 +3794,11 @@ void Verifier::visitCallBase(CallBase &Call) {
3794
} else if (Tag == LLVMContext::OB_callee_type) {
3795
Check(!FoundCalleeTypeBundle, "Multiple \"callee_type\" operand bundles",
3796
Call);
3797
+ auto *OBVal = BU.Inputs.front().get();
3798
+ auto *TypeIdMD = cast<MetadataAsValue>(OBVal)->getMetadata();
3799
+ auto *TypeIdStr = cast<MDString>(TypeIdMD);
3800
+ Check(TypeIdStr->getString().ends_with(".generalized"),
3801
+ "Invalid \"callee_type\" type identifier", Call);
3802
FoundCalleeTypeBundle = true;
3803
}
3804
0 commit comments