瀏覽代碼

* translate formaldef into "i8*", as intended, instead of "i8**" due to
the fact that this type is always passed by reference

git-svn-id: trunk@30486 -

Jonas Maebe 10 年之前
父節點
當前提交
101fc3d4ec
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      compiler/llvm/llvmdef.pas

+ 3 - 2
compiler/llvm/llvmdef.pas

@@ -358,8 +358,9 @@ implementation
             end;
           formaldef :
             begin
-              { var/const/out x }
-              encodedstr:=encodedstr+'i8*';
+              { var/const/out x (always treated as "pass by reference" -> don't
+                add extra "*" here) }
+              encodedstr:=encodedstr+'i8';
             end;
           arraydef :
             begin