[llvm-commits] llvm-gcc: return the correct type for ARRAY_RANGE_REF

Devang Patel dpatel at apple.com
Mon Mar 19 16:38:50 PDT 2007


On Mar 14, 2007, at 3:51 PM, Duncan Sands wrote:

> An ARRAY_RANGE_REF is for extracting a range of elements from
> an array, for example elements 1 to 2 of an [3 x i32], while
> ARRAY_REF is for extracting a single element, say element 2.
> EmitLV_ARRAY_REF, which handles both expression types, should
> return a [2 x i32]* in the first case and an i32* in the second
> case (currently it always returns a pointer to the element type).
> The testcase is, as ever, in Ada (Ada is the only front-end that
> generates ARRAY_RANGE_REF).

Applied.

-
Devang



More information about the llvm-commits mailing list