summaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-14 22:08:48 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-14 22:08:48 +0000
commit2aa513612edb4d485043079f8fa8e6f22097b958 (patch)
tree7b31311713785c0380254b91af5cc99bda4c041d /gcc/ipa-prop.c
parent1e99ccfc56afe97e5bec8ca301b9b389657c9c7e (diff)
downloadgcc-2aa513612edb4d485043079f8fa8e6f22097b958.tar.gz
PR middle-end/58477
* ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers. * g++.dg/ipa/devirt-19.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205993 138bc75d-0d04-0410-961f-82ee72b054a4
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 94266c0ec3e..650e6002b87 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);