mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 06:29:25 +01:00
* initialise the llvmvalueloc field for LOC_VOID locations, so they don't
get randomly passed as either byval or not (while they don't contain any
data and hence this can't cause bugs in the generated code, it can cause
signature mismatches in llvm)
git-svn-id: trunk@34956 -
This commit is contained in:
parent
280a6e15b7
commit
d39db60934
@ -134,7 +134,11 @@ unit llvmpara;
|
||||
paraloc^.llvmvalueloc:=true;
|
||||
end;
|
||||
LOC_VOID:
|
||||
;
|
||||
begin
|
||||
{ for empty records, ensure these don't get a byval
|
||||
attribute }
|
||||
paraloc^.llvmvalueloc:=true;
|
||||
end;
|
||||
else
|
||||
internalerror(2014012302);
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user