aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2013-12-14 23:08:48 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2013-12-14 22:08:48 +0000
commiteb6bcfb017d409db793b8fa6fde93f85f8ec75cc (patch)
tree7b31311713785c0380254b91af5cc99bda4c041d /gcc/ipa-prop.c
parent0a73546d3c46876969276e1730907e6faec7428d (diff)
downloadgcc-eb6bcfb017d409db793b8fa6fde93f85f8ec75cc.zip
gcc-eb6bcfb017d409db793b8fa6fde93f85f8ec75cc.tar.gz
gcc-eb6bcfb017d409db793b8fa6fde93f85f8ec75cc.tar.bz2
re PR c++/58477 (ice in cgraph_speculative_call_info)
PR middle-end/58477 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers. * g++.dg/ipa/devirt-19.C: New testcase. From-SVN: r205993
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r--gcc/ipa-prop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 94266c0..650e600 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -560,6 +560,8 @@ stmt_may_be_vtbl_ptr_store (gimple stmt)
{
if (is_gimple_call (stmt))
return false;
+ else if (gimple_clobber_p (stmt))
+ return false;
else if (is_gimple_assign (stmt))
{
tree lhs = gimple_assign_lhs (stmt);