Commit be78780
Fix nested _Rational in Pow codegen for negative exponents
When Pow(X, -1) is codegen'd and X contains a division (producing a
_Rational on the stack), the base must be resolved to an MLIR value
before wrapping in a new _Rational. Otherwise a nested _Rational
propagates to floor/floordiv_expr which expects flat numerator and
denominator values.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>1 parent 1533f10 commit be78780
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1097 | 1097 | | |
1098 | 1098 | | |
1099 | 1099 | | |
| 1100 | + | |
1100 | 1101 | | |
1101 | 1102 | | |
1102 | 1103 | | |
| |||
0 commit comments