Skip to content

Commit

Permalink
Update IlxGen.fs
Browse files Browse the repository at this point in the history
  • Loading branch information
psfinaki authored and jsoref committed May 3, 2024
1 parent 4a5ca4b commit d9c7ca6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Compiler/CodeGen/IlxGen.fs
Expand Up @@ -5359,7 +5359,7 @@ and GenILCall
cenv
cgbuf
eenv
(virt, value_, newobj, valUseFlags, isDllImport, ilMethRef: ILMethodRef, enclArgTys, methArgTys, argExprs, returnTys, m)
(virt, valu, newobj, valUseFlags, isDllImport, ilMethRef: ILMethodRef, enclArgTys, methArgTys, argExprs, returnTys, m)
sequel
=
let hasByrefArg = ilMethRef.ArgTypes |> List.exists IsILTypeByref
Expand All @@ -5379,10 +5379,10 @@ and GenILCall
| PossibleConstrainedCall ty -> Some ty
| _ -> None

let boxity = (if value_ then AsValue else AsObject)
let boxity = (if valu then AsValue else AsObject)
let mustGenerateUnitAfterCall = isNil returnTys
let makesNoCriticalTailcalls = (newobj || not virt) // Don't tailcall for 'newobj', or 'call' to IL code
let hasStructObjArg = value_ && ilMethRef.CallingConv.IsInstance
let hasStructObjArg = valu && ilMethRef.CallingConv.IsInstance

let tail =
CanTailcall(
Expand Down

0 comments on commit d9c7ca6

Please sign in to comment.