Browse Source

fixed a bug with a missing calling convention type

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@6630 8c9fc860-2736-0410-a75d-ab315db34111
eth.morozova 9 năm trước cách đây
mục cha
commit
2c1e19dc36
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      source/FoxAMDBackend.Mod

+ 1 - 0
source/FoxAMDBackend.Mod

@@ -1309,6 +1309,7 @@ TYPE
 				emitter.Emit2(InstructionSet.opSUB,opSP,op1);
 			END;
 
+			cc := SHORT(instruction.op1.intValue);
 			IF (cc = SyntaxTree.WinAPICallingConvention) OR (cc = SyntaxTree.CCallingConvention) THEN
 				(* the winapi calling convention presumes that all registers except EAX, EDX and ECX are retained by the callee *)
 				emitter.Emit1(InstructionSet.opPUSH,opEBX);