We lower expressions with rank > 0 to a set of high-level array operations.
These operations are then analyzed and refined to more primitve
operations in subsequent pass(es).
This patch upstreams these array operations and some other helper ops.
Authors: Eric Schweitz, Rajan Walia, Kiran Chandramohan, et.al.
The ODS definition specifies the operand as AnyRefOrBox, I'd think that should be enough to have a constraint already enforced. Do you have a test which would show this line reachable?