This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 05/11/2015 06:38 AM, Jan Hubicka wrote:
- TYPE_METHODS (type) = chainon (TYPE_METHODS (type), fn); + TYPE_METHODS (type) = chainon (TYPE_METHODS (TYPE_MAIN_VARIANT (type)), fn); else { - DECL_CHAIN (fn) = TYPE_METHODS (type); - TYPE_METHODS (type) = fn; + DECL_CHAIN (fn) = TYPE_METHODS (TYPE_MAIN_VARIANT (type)); + TYPE_METHODS (TYPE_MAIN_VARIANT (type)) = fn;
Instead, let's set type = TYPE_MAIN_VARIANT (type) at the top of the function. OK with that change.
Jason
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |