Browse Source

* fix aarch64 building

git-svn-id: trunk@37025 -
florian 8 years ago
parent
commit
a1a14eaaa8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/aarch64/cgcpu.pas

+ 4 - 1
compiler/aarch64/cgcpu.pas

@@ -702,7 +702,10 @@ implementation
         hreg: tregister;
       begin
         if tcgsize2Size[fromsize]>=tcgsize2Size[tosize] then
-          fromsize:=tosize
+          begin
+            fromsize:=tosize;
+            reg:=makeregsize(list,reg,fromsize);
+          end
         { have a 32 bit register but need a 64 bit one? }
         else if tosize in [OS_64,OS_S64] then
           begin