Skip to content

Commit c90645f

Browse files
committed
Fixed inlining with delegate method
1 parent b14e61d commit c90645f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/Mosa.Compiler.Framework/DelegatePatcher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ private static void PatchInvoke(BaseMethodCompiler methodCompiler)
9292

9393
if (methodCompiler.StoreOnStack(type))
9494
{
95-
//fixme: handle structs
96-
System.Diagnostics.Debug.Assert(false);
95+
b0.AppendInstruction(IRInstruction.LoadParameterCompound, vrs[i], methodCompiler.Parameters[i]);
96+
b0.MosaType = type;
9797
}
9898
else
9999
{

0 commit comments

Comments
 (0)