Pārlūkot izejas kodu

LLVM: us paraloc def instead of para def for byval

We also use the paraloc instead of the para to write the def
Jonas Maebe 2 gadi atpakaļ
vecāks
revīzija
1e83d415c3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      compiler/llvm/llvmdef.pas

+ 1 - 1
compiler/llvm/llvmdef.pas

@@ -857,7 +857,7 @@ implementation
                 encodedstr:=encodedstr+'*';
                 encodedstr:=encodedstr+'*';
               if withattributes then
               if withattributes then
                 begin
                 begin
-                  encodedstr:=encodedstr+llvmparatypeattr(' byval',hp.vardef,false);
+                  encodedstr:=encodedstr+llvmparatypeattr(' byval',paraloc^.def,false);
                   if firstloc and
                   if firstloc and
                      (para^.alignment<>std_param_align) then
                      (para^.alignment<>std_param_align) then
                     begin
                     begin