File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3580,9 +3580,11 @@ void Verifier::verifyMustTailCall(CallInst &CI) {
35803580 AttributeList CallerAttrs = F->getAttributes ();
35813581 AttributeList CalleeAttrs = CI.getAttributes ();
35823582 if (CI.getCallingConv () == CallingConv::SwiftTail ||
3583- CI.getCallingConv () == CallingConv::Tail) {
3583+ CI.getCallingConv () == CallingConv::Tail ||
3584+ CI.getCallingConv () == CallingConv::OCaml) {
35843585 StringRef CCName =
3585- CI.getCallingConv () == CallingConv::Tail ? " tailcc" : " swifttailcc" ;
3586+ CI.getCallingConv () == CallingConv::Tail ? " tailcc" :
3587+ CI.getCallingConv () == CallingConv::SwiftTail ? " swifttailcc" : " ocamlcc" ;
35863588
35873589 // - Only sret, byval, swiftself, and swiftasync ABI-impacting attributes
35883590 // are allowed in swifttailcc call
You can’t perform that action at this time.
0 commit comments