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) {
3580
3580
AttributeList CallerAttrs = F->getAttributes ();
3581
3581
AttributeList CalleeAttrs = CI.getAttributes ();
3582
3582
if (CI.getCallingConv () == CallingConv::SwiftTail ||
3583
- CI.getCallingConv () == CallingConv::Tail) {
3583
+ CI.getCallingConv () == CallingConv::Tail ||
3584
+ CI.getCallingConv () == CallingConv::OCaml) {
3584
3585
StringRef CCName =
3585
- CI.getCallingConv () == CallingConv::Tail ? " tailcc" : " swifttailcc" ;
3586
+ CI.getCallingConv () == CallingConv::Tail ? " tailcc" :
3587
+ CI.getCallingConv () == CallingConv::SwiftTail ? " swifttailcc" : " ocamlcc" ;
3586
3588
3587
3589
// - Only sret, byval, swiftself, and swiftasync ABI-impacting attributes
3588
3590
// are allowed in swifttailcc call
You can’t perform that action at this time.
0 commit comments