Browse Source

* fix warnings in spilling_create_load and spilling_create_store

Nikolay Nikolov 2 months ago
parent
commit
963cd66d4b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/mos6502/aasmcpu.pas

+ 2 - 0
compiler/mos6502/aasmcpu.pas

@@ -295,6 +295,7 @@ implementation
 
 
     function spilling_create_load(const ref:treference;r:tregister):Taicpu;
     function spilling_create_load(const ref:treference;r:tregister):Taicpu;
       begin
       begin
+        Result:=nil;
         internalerror(2024040603);
         internalerror(2024040603);
         //case getregtype(r) of
         //case getregtype(r) of
         //  R_INTREGISTER :
         //  R_INTREGISTER :
@@ -307,6 +308,7 @@ implementation
 
 
     function spilling_create_store(r:tregister; const ref:treference):Taicpu;
     function spilling_create_store(r:tregister; const ref:treference):Taicpu;
       begin
       begin
+        Result:=nil;
         internalerror(2024040604);
         internalerror(2024040604);
         //case getregtype(r) of
         //case getregtype(r) of
         //  R_INTREGISTER :
         //  R_INTREGISTER :