Repository navigation
Commit aae6d15
boolbv: fix fixedbv-type check in convert_rest for ID_isfinite
The ID_isfinite branch in boolbvt::convert_rest tested
'op.id() == ID_fixedbv', but ID_fixedbv is a *type* id and op is the
operand expression, not a type. The dead branch never matched and
fixedbv operands fell through to SUB::convert_rest, which is not
prepared to lower an isfinite expression and would yield an
unexpected result or conversion failure.
The neighbouring ID_isnan, ID_isinf, and ID_isnormal branches all
correctly use 'op.type().id() == ID_fixedbv'. Bring ID_isfinite
into line.
Pre-existing typo, unrelated to the surrounding refactoring; fixed
here because it sits in the immediate neighbourhood of changes to
the floatbv branch and to keep the fixedbv handling consistent.
Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>1 parent cbdcf13 commit aae6d15
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
| 464 | + | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
| |||
0 commit comments