@@ -3722,13 +3722,13 @@ void Verifier::visitCallBase(CallBase &Call) {
37223722 visitIntrinsicCall (ID, Call);
37233723
37243724 // Verify that a callsite has at most one operand bundle for each of the
3725- // following: "deopt", "funclet", "gc-transition", "cfguardtarget", "type",
3726- // "preallocated", and "ptrauth".
3725+ // following: "deopt", "funclet", "gc-transition", "cfguardtarget",
3726+ // "callee_type", " preallocated", and "ptrauth".
37273727 bool FoundDeoptBundle = false , FoundFuncletBundle = false ,
37283728 FoundGCTransitionBundle = false , FoundCFGuardTargetBundle = false ,
37293729 FoundPreallocatedBundle = false , FoundGCLiveBundle = false ,
37303730 FoundPtrauthBundle = false , FoundKCFIBundle = false ,
3731- FoundAttachedCallBundle = false , FoundTypeBundle = false ;
3731+ FoundAttachedCallBundle = false , FoundCalleeTypeBundle = false ;
37323732 for (unsigned i = 0 , e = Call.getNumOperandBundles (); i < e; ++i) {
37333733 OperandBundleUse BU = Call.getOperandBundleAt (i);
37343734 uint32_t Tag = BU.getTagID ();
@@ -3791,9 +3791,10 @@ void Verifier::visitCallBase(CallBase &Call) {
37913791 " Multiple \" clang.arc.attachedcall\" operand bundles" , Call);
37923792 FoundAttachedCallBundle = true ;
37933793 verifyAttachedCallBundle (Call, BU);
3794- } else if (Tag == LLVMContext::OB_type) {
3795- Check (!FoundTypeBundle, " Multiple \" type\" operand bundles" , Call);
3796- FoundTypeBundle = true ;
3794+ } else if (Tag == LLVMContext::OB_callee_type) {
3795+ Check (!FoundCalleeTypeBundle, " Multiple \" callee_type\" operand bundles" ,
3796+ Call);
3797+ FoundCalleeTypeBundle = true ;
37973798 }
37983799 }
37993800
0 commit comments