mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-03 07:27:22 +01:00
* Handle invalid register correctly
git-svn-id: trunk@17894 -
This commit is contained in:
parent
bffd571f9d
commit
37b98917e0
@ -458,10 +458,13 @@ unit cpubase;
|
|||||||
|
|
||||||
|
|
||||||
function dwarf_reg(r:tregister):byte;
|
function dwarf_reg(r:tregister):byte;
|
||||||
|
var
|
||||||
|
reg : shortint;
|
||||||
begin
|
begin
|
||||||
result:=regdwarf_table[findreg_by_number(r)];
|
reg:=regdwarf_table[findreg_by_number(r)];
|
||||||
if result=-1 then
|
if reg=-1 then
|
||||||
internalerror(200603251);
|
internalerror(200603251);
|
||||||
|
result:=reg;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user