Re: [PATCH] builtins: Fix up two bugs in access_ref::inform_access [PR98721]

2021-01-20 Thread Richard Biener
On Wed, 20 Jan 2021, Jakub Jelinek wrote: > Hi! > > The following patch fixes two bugs in the access_ref::inform_access function > (plus some formatting nits). > > The first problem is that ref can be various things, e.g. *_DECL, or > SSA_NAME, or IDENTIFIER_NODE. And allocfn is non-NULL only i

[PATCH] builtins: Fix up two bugs in access_ref::inform_access [PR98721]

2021-01-19 Thread Jakub Jelinek via Gcc-patches
Hi! The following patch fixes two bugs in the access_ref::inform_access function (plus some formatting nits). The first problem is that ref can be various things, e.g. *_DECL, or SSA_NAME, or IDENTIFIER_NODE. And allocfn is non-NULL only if ref is (at least originally) an SSA_NAME initialized to