2017-09-13 Richard Biener <rguenther@suse.de>
commit2645d12c61f672336c9f4f9d8e7b76cc499537ec
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Sep 2017 08:13:03 +0000 (13 08:13 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Sep 2017 08:13:03 +0000 (13 08:13 +0000)
tree85968996243f9eb29194674f04443ee99447c9c1
parent4737dd9e29e270e65f65fd1239415f8fd36edd49
2017-09-13  Richard Biener  <rguenther@suse.de>

PR middle-end/82128
* gimple-fold.c (gimple_fold_call): Update SSA name in-place to
default-def to avoid breaking iterator update with the weird
interaction with cgraph_update_edges_for_call_stmt_node.

* g++.dg/pr82128.C: New testcase.

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