Browse Source

Patched return from a generated initializer (ran into problems when returning from initializer on ARM)

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@6871 8c9fc860-2736-0410-a75d-ab315db34111
felixf 8 years ago
parent
commit
86473011be
1 changed files with 1 additions and 2 deletions
  1. 1 2
      source/FoxIntermediateBackend.Mod

+ 1 - 2
source/FoxIntermediateBackend.Mod

@@ -6935,11 +6935,10 @@ TYPE
 		PROCEDURE CloseInitializer(prev: IntermediateCode.Section);
 		BEGIN
 			EmitLeave(section, 0, NIL, 0 );
-			Emit(Exit(-1,ToMemoryUnits(system,addressType.sizeInBits),0, 0));
+			Emit(Exit(-1,0 ,0, 0));
 			section := prev;
 		END CloseInitializer;
 		
-
 		PROCEDURE AddPorts(cell: SyntaxTree.Symbol; x: SyntaxTree.CellType);
 		VAR name: SyntaxTree.IdentifierString; 
 			variable: SyntaxTree.Variable;