* fixed bug that caused the "sret" argument attribute to never be used (and

a guaranteed internalerror on AArch64/llvm)

git-svn-id: trunk@40565 -
This commit is contained in:
Jonas Maebe 2018-12-16 20:44:09 +00:00
parent 2e98c7d41b
commit 97bc58d248

View File

@ -690,9 +690,7 @@ implementation
llvmextractvalueextinfo(hp.vardef,usedef,signext);
{ implicit zero/sign extension for ABI compliance? }
if not first then
encodedstr:=encodedstr+', '
else
first:=false;
encodedstr:=encodedstr+', ';
llvmaddencodedtype_intern(usedef,[],encodedstr);
{ in case signextstr<>'', there should be only one paraloc -> no need
to clear (reason: it means that the paraloc is larger than the
@ -769,6 +767,7 @@ implementation
encodedstr:=encodedstr+' '+llvmasmsymname(paraloc^.llvmloc.sym);
end;
paraloc:=paraloc^.next;
first:=false;
until not assigned(paraloc);
end;