mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 22:30:50 +02:00
* fixed crash in r30244 (we only have to get a new elementdef if we didn't
already initialise the location, and we won't get a new elementdef if the location is already assigned) git-svn-id: branches/hlcgllvm@30346 -
This commit is contained in:
parent
25e6eaf07f
commit
5a2609933f
@ -155,9 +155,12 @@ implementation
|
||||
if (resultdef.typ=floatdef) and
|
||||
(tfloatdef(resultdef).floattype=s80real) then
|
||||
begin
|
||||
{ avoid uninitialised warning }
|
||||
arrptrelementdef:=nil;
|
||||
getarrelementptrdef;
|
||||
if not assigned(locref) then
|
||||
begin
|
||||
{ avoid uninitialised warning }
|
||||
arrptrelementdef:=nil;
|
||||
getarrelementptrdef;
|
||||
end;
|
||||
hreg:=hlcg.getaddressregister(current_asmdata.CurrAsmList,getpointerdef(resultdef));
|
||||
hlcg.a_load_reg_reg(current_asmdata.CurrAsmList,arrptrelementdef,getpointerdef(resultdef),locref^.base,hreg);
|
||||
locref^.base:=hreg;
|
||||
|
Loading…
Reference in New Issue
Block a user