mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-30 06:39:58 +02:00
* Replaced impossible-to-reach errors in case blocks with internal errors in "texprvalue.evaluate"
This commit is contained in:
parent
b49d2f689f
commit
0c00e3ae13
@ -1372,11 +1372,7 @@ type
|
|||||||
else if is_fpu(def) then
|
else if is_fpu(def) then
|
||||||
result:=texprvalue.create_real(-pbestreal(value.valueptr)^)
|
result:=texprvalue.create_real(-pbestreal(value.valueptr)^)
|
||||||
else
|
else
|
||||||
begin
|
InternalError(2025050610);
|
||||||
{ actually we should never get here but this avoids a warning }
|
|
||||||
Message(parser_e_illegal_expression);
|
|
||||||
result:=texprvalue.create_error;
|
|
||||||
end;
|
|
||||||
end
|
end
|
||||||
else if check_compatible then
|
else if check_compatible then
|
||||||
begin
|
begin
|
||||||
@ -1414,11 +1410,7 @@ type
|
|||||||
_OP_SHR:
|
_OP_SHR:
|
||||||
result:=texprvalue.create_ord(lv shr rv);
|
result:=texprvalue.create_ord(lv shr rv);
|
||||||
else
|
else
|
||||||
begin
|
InternalError(2025050611);
|
||||||
{ actually we should never get here but this avoids a warning }
|
|
||||||
Message(parser_e_illegal_expression);
|
|
||||||
result:=texprvalue.create_error;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user