Re: [PATCH] inliner: Copy DECL_BY_REFERENCE in copy_decl_to_var [PR93888]

2020-03-04 Thread Richard Biener
On March 3, 2020 9:13:01 PM GMT+01:00, Jakub Jelinek wrote: >Hi! > >In the following testcase we emit wrong debug info for the karg >parameter in the DW_TAG_inlined_subroutine into main. >The problem is that the karg PARM_DECL is DECL_BY_REFERENCE and thus >in the IL has const K & type, but in the

[PATCH] inliner: Copy DECL_BY_REFERENCE in copy_decl_to_var [PR93888]

2020-03-03 Thread Jakub Jelinek
Hi! In the following testcase we emit wrong debug info for the karg parameter in the DW_TAG_inlined_subroutine into main. The problem is that the karg PARM_DECL is DECL_BY_REFERENCE and thus in the IL has const K & type, but in the source just const K. When the function is inlined, we create a VAR