PR ipa/67056
commitedbc08a8d5983fba563e3dd60dc97b35f775411c
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Oct 2015 21:14:06 +0000 (21 21:14 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Oct 2015 21:14:06 +0000 (21 21:14 +0000)
tree12fd4877448080c5a10e84c2b07669d069128d20
parent35e78cd14f3f3c557c9111d7adfebc8d0da8f81a
PR ipa/67056
* ipa-polymorphic-call.c (possible_placement_new): If cur_offset
is negative we don't know the type.
(check_stmt_for_type_change): Skip constructors of non-polymorphic
types as those won't help devirutalization.
* g++.dg/ipa/pr67056.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229148 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-polymorphic-call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr67056.C [new file with mode: 0644]