mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 05:52:11 +00:00
Fixed ldelema for value types.
This commit is contained in:
parent
00ba897866
commit
4f7450dc30
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ namespace Cosmos.IL2CPU.X86.IL
|
|||
// translate it to actual memory
|
||||
new CPUx86.Mov { DestinationReg = CPUx86.Registers.EDX, SourceReg = CPUx86.RegistersEnum.EDX, SourceIsIndirect = true };
|
||||
|
||||
if (aOpType.StackPopTypes.Last().IsClass)
|
||||
if (aOpType.StackPopTypes.Last().GetElementType().IsClass)
|
||||
{
|
||||
new CPUx86.Mov { DestinationReg = CPUx86.Registers.EDX, SourceReg = CPUx86.RegistersEnum.EDX, SourceIsIndirect = true };
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue