mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 03:59:28 +02:00
Move explicit typecast to after check to avoid RTE when compiled with -CR
git-svn-id: trunk@47367 -
This commit is contained in:
parent
9dc92e1c36
commit
3d374727dd
@ -85,11 +85,11 @@ Implementation
|
||||
var
|
||||
p: taicpu;
|
||||
begin
|
||||
p := taicpu(hp);
|
||||
Result := false;
|
||||
if not ((assigned(hp)) and (hp.typ = ait_instruction)) then
|
||||
exit;
|
||||
|
||||
p := taicpu(hp);
|
||||
case p.opcode of
|
||||
{ These operands do not write into a register at all }
|
||||
A_CMP, A_CMN, A_TST, A_B, A_BL, A_MSR, A_FCMP:
|
||||
|
@ -220,11 +220,11 @@ Implementation
|
||||
var
|
||||
p: taicpu;
|
||||
begin
|
||||
p := taicpu(hp);
|
||||
Result := false;
|
||||
if not ((assigned(hp)) and (hp.typ = ait_instruction)) then
|
||||
exit;
|
||||
|
||||
p := taicpu(hp);
|
||||
case p.opcode of
|
||||
{ These operands do not write into a register at all }
|
||||
A_CMP, A_CMN, A_TST, A_TEQ, A_B, A_BL, A_BX, A_BLX, A_SWI, A_MSR, A_PLD,
|
||||
|
Loading…
Reference in New Issue
Block a user