[llvm-commits] llvm-gcc: use component_ref_field_offset in component references
Devang Patel
dpatel at apple.com
Mon Mar 12 15:29:20 PDT 2007
On Mar 2, 2007, at 6:36 AM, Duncan Sands wrote:
> The third operand of a COMPONENT_REF represents the byte offset of
> the field; it is accessed using component_ref_field_offset. Most of
> the time you can get away with extracting the offset from the type,
> using DECL_FIELD_OFFSET, which is what is done currently, but this
> can fail if DECL_FIELD_OFFSET contains a PLACEHOLDER_EXPR for example.
> The NON_LVALUE_EXPR Ada testcase also tests this one.
Applied.
-
Devang
More information about the llvm-commits
mailing list