Selaa lähdekoodia

* MIPS: use correct def to calculate parameter alignment (when parameter is passed by address, its def changes to pointer and the alignment of parameter itself is irrelevant). Fixes at least webtbs/tw7806.

git-svn-id: trunk@23538 -
sergei 12 vuotta sitten
vanhempi
commit
08c0c265c9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      compiler/mips/cpupara.pas

+ 1 - 1
compiler/mips/cpupara.pas

@@ -343,7 +343,7 @@ implementation
                   paralen := tcgsize2size[paracgsize];
               end;
 
-            if (paracgsize in [OS_64, OS_S64, OS_F64]) or (hp.vardef.alignment = 8) then
+            if (paracgsize in [OS_64, OS_S64, OS_F64]) or (paradef.alignment = 8) then
               alignment := 8
             else
               alignment := 4;