Re: [llvm-commits] llvm-gcc: use component_ref_field_offset in component references

2007-03-12 Thread Devang Patel
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 wha

[llvm-commits] llvm-gcc: use component_ref_field_offset in component references

2007-03-02 Thread Duncan Sands
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_OFFSE