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] |
The problem here is that when we clone a function, we forget to copy the correct type for the arguments so we get a crash when we copy the body of the function as we are creating an INDIRECT_REF of a record type which is just wrong.
Thanks, Andrew Pinski
ChangeLog: * optimize.c (update_cloned_parm): Copy the TYPE also from the original one.
Attachment:
temp.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |