]> git.ipfire.org Git - thirdparty/gcc.git/commit
2010-09-23 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Sep 2010 12:39:26 +0000 (12:39 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Sep 2010 12:39:26 +0000 (12:39 +0000)
commit75c7f5a57d1807163bebc0de376dc96386acd805
tree2f5df5c8bd6aecb5ecc5b109b2f2938e21a29f69
parent748e8c8a98ba5f89ac06a9e5299d581bd77dbb6e
2010-09-23  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/45565
* cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
Make sure to adjust the fndecl before replacing the stmt.

* g++.dg/ipa/pr45565.C: New testcase.

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