PR c++/78692
commit6f7e2d6ed1811533a05748b7d07e01aa356feed3
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Dec 2016 19:10:50 +0000 (7 19:10 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Dec 2016 19:10:50 +0000 (7 19:10 +0000)
treed7b5af4b797553f6965b1acd08878728c2806364
parent2d7869ef1f432aa4184c7822f629f34db27da4e0
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.

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