Re: [PATCH, IPA] Check pointer for 0 before use in `get_odr_type`
On 02.09.2016 23:56, Jakub Jelinek wrote: On Fri, Sep 02, 2016 at 11:53:01PM +0300, Kirill Yukhin wrote: gcc/ * gcc/ipa-devirt.c (get_odr_type): Check odr_types_ptr for zero before dereferencing it. I've already tested/posted http://gcc.gnu.org/ml/gcc-patches/2016-09/msg00089.html for this. Okay, disregard then. -- Thanks, K Jakub
Re: [PATCH, IPA] Check pointer for 0 before use in `get_odr_type`
On Fri, Sep 02, 2016 at 11:53:01PM +0300, Kirill Yukhin wrote: > Hello, > Looks like `get_odr_type ()` contains code which dereferences > pointer before check it for zero. I moved the line under the check. > > Bootstrap/regtest on x?86|x86_64 in progress. > > Is it ok for trunk if pass? > > gcc/ > * gcc/ipa-devirt.c (get_odr_type): Check odr_types_ptr for > zero before dereferencing it. I've already tested/posted http://gcc.gnu.org/ml/gcc-patches/2016-09/msg00089.html for this. Jakub