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

+ setlocalloc resets currentregloc

git-svn-id: trunk@24118 -
florian 12 жил өмнө
parent
commit
43b6139b66
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      compiler/ncgutil.pas

+ 2 - 1
compiler/ncgutil.pas

@@ -1499,7 +1499,7 @@ implementation
 
     procedure gen_alloc_symtable(list:TAsmList;pd:tprocdef;st:TSymtable);
 
-        procedure setlocalloc(vs:tabstractnormalvarsym);
+      procedure setlocalloc(vs:tabstractnormalvarsym);
         begin
           if cs_asm_source in current_settings.globalswitches then
             begin
@@ -1513,6 +1513,7 @@ implementation
               end;
             end;
           vs.localloc:=vs.initialloc;
+          FillChar(vs.currentregloc,sizeof(vs.currentregloc),0);
         end;
 
       var