2
0
Эх сурвалжийг харах

Patched scope problem with inline assembly

git-svn-id: https://svn-dept.inf.ethz.ch/svn/lecturers/a2/trunk@8932 8c9fc860-2736-0410-a75d-ab315db34111
felixf 6 жил өмнө
parent
commit
5be8ffb1ee

+ 1 - 1
source/FoxIntermediateBackend.Mod

@@ -10808,7 +10808,7 @@ TYPE
 				ELSIF (sectionType = Sections.InlineCodeSection) & (x.procedureScope.body.code.sourceCode # NIL) THEN
 					source := NewSection(module.allSections, sectionType, name,x,commentPrintout # NIL);
 					IF source.pc = 0 THEN (* no code yet *)
-						source.Emit(Asm(position,x.procedureScope.body.code.sourceCode,NIL,NIL,currentScope));
+						source.Emit(Asm(position,x.procedureScope.body.code.sourceCode,NIL,NIL,x.procedureScope (*currentScope*)));
 					END;
 				ELSIF (sectionType = Sections.InlineCodeSection) & (x.procedureScope.body.code.inlineCode # NIL) THEN
 					bits := x.procedureScope.body.code.inlineCode;