mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 18:18:09 +08:00
The array component indices in the "path" of a fir.slice are zero based because FIR does not know about the component lower bounds. When lowering hlfir.designate to FIR for `array%x(i, j)`, convert `i` and `j` to zero based indices before generating the fir.slice. Differential Revision: https://reviews.llvm.org/D148627