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