re PR tree-optimization/78692 (ICE (segfault))
authorJakub Jelinek <jakub@redhat.com>
Wed, 7 Dec 2016 19:10:50 +0000 (20:10 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 7 Dec 2016 19:10:50 +0000 (20:10 +0100)
commit77f1efdbe8fe401040adb9b2b43aac85916682ac
treed7b5af4b797553f6965b1acd08878728c2806364
parent9c4e96eb1e305a9f35e4dbafb0a1fe29ef226265
re PR tree-optimization/78692 (ICE (segfault))

PR c++/78692
* cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
var to lhs of new_stmt right before noreturn handling rather than to
lhs of e->call_stmt early.

* g++.dg/torture/pr78692.C: New test.

From-SVN: r243377
gcc/ChangeLog
gcc/cgraph.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr78692.C [new file with mode: 0644]