Unverified Commit 0d2efbb8 authored by Florian Hahn's avatar Florian Hahn
Browse files

[LV] Always use add to add scalar iv and (startidx + step) for ints.

In the integer case, step will be negative and InductionOpCode will be
Sub for inductions counting down.

By using the InductionOpCode for integers, we would incorrectly subtract
a negative value, when it should be added instead.

This fixes #54427 on the 14.x branch.
parent e7a9fd4f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment