aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfgcleanup.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-06-25 14:07:00 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2010-06-25 14:07:00 +0200
commit8ba0479ece9a852e7a1029268a33a3d52277a7f8 (patch)
treec9ad25da1f5b72e7990399b048ef68e5dc2a6d21 /gcc/tree-cfgcleanup.c
parent47d660fbccfa16d612d09eeb7e44bf683e1526e8 (diff)
downloadgcc-8ba0479ece9a852e7a1029268a33a3d52277a7f8.zip
gcc-8ba0479ece9a852e7a1029268a33a3d52277a7f8.tar.gz
gcc-8ba0479ece9a852e7a1029268a33a3d52277a7f8.tar.bz2
re PR tree-optimization/44539 (ICE: verify_ssa failed: type mismatch between an SSA_NAME and its symbol)
PR tree-optimization/44539 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when the call doesn't have LHS, but has VDEF. * gcc.dg/pr44539.c: New test. From-SVN: r161374
Diffstat (limited to 'gcc/tree-cfgcleanup.c')
-rw-r--r--gcc/tree-cfgcleanup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-cfgcleanup.c b/gcc/tree-cfgcleanup.c
index 7e78174..7f8498a 100644
--- a/gcc/tree-cfgcleanup.c
+++ b/gcc/tree-cfgcleanup.c
@@ -591,6 +591,9 @@ fixup_noreturn_call (gimple stmt)
update_stmt (stmt);
changed = true;
}
+ /* Similarly remove VDEF if there is any. */
+ else if (gimple_vdef (stmt))
+ update_stmt (stmt);
return changed;
}