mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 20:09:25 +02: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;
|
||||
var
|
||||
reg : shortint;
|
||||
begin
|
||||
result:=regdwarf_table[findreg_by_number(r)];
|
||||
if result=-1 then
|
||||
reg:=regdwarf_table[findreg_by_number(r)];
|
||||
if reg=-1 then
|
||||
internalerror(200603251);
|
||||
result:=reg;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user