From 95171a1e2281d494c706108394bc0e695dfc1461 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Sun, 16 Dec 2018 20:44:28 +0000 Subject: [PATCH] * initialise cgpara with valid data for the C-style "array of const" para (necessary for the LLVM backend) git-svn-id: trunk@40571 - --- compiler/aarch64/cpupara.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/aarch64/cpupara.pas b/compiler/aarch64/cpupara.pas index fec12c9755..f88b542188 100644 --- a/compiler/aarch64/cpupara.pas +++ b/compiler/aarch64/cpupara.pas @@ -400,11 +400,16 @@ unit cpupara; if (p.proccalloption in cstylearrayofconst) and is_array_of_const(paradef) then begin + result.size:=OS_NO; + result.def:=paradef; + result.alignment:=std_param_align; + result.intsize:=0; paraloc:=result.add_location; { hack: the paraloc must be valid, but is not actually used } paraloc^.loc:=LOC_REGISTER; paraloc^.register:=NR_X0; paraloc^.size:=OS_ADDR; + paraloc^.def:=paradef; exit; end;