Jelajahi Sumber

* pass records of all sizes by reference if they are const

git-svn-id: trunk@3251 -
florian 19 tahun lalu
induk
melakukan
5a888656ca
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      compiler/x86_64/cpupara.pas

+ 1 - 1
compiler/x86_64/cpupara.pas

@@ -183,7 +183,7 @@ unit cpupara;
           formaldef :
             result:=true;
           recorddef :
-            result:=(def.size>sizeof(aint));
+            result:=(def.size>sizeof(aint)) or (varspez=vs_const);
           arraydef :
             begin
               result:=not(