浏览代码

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

git-svn-id: trunk@3251 -
florian 19 年之前
父节点
当前提交
5a888656ca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/x86_64/cpupara.pas

+ 1 - 1
compiler/x86_64/cpupara.pas

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