From 07b9f1de1ea532a66d8ac103f3a9827521d780f9 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 20 Nov 2018 08:06:09 +0000 Subject: re PR lto/88087 (ICE in execute at tree-ssa-pre.c:4220 since r266183) 2018-11-20 Richard Biener PR tree-optimization/88087 * tree-ssa-pre.c (create_expression_by_pieces): Re-materialize call fntype. * tree-ssa-sccvn.c (copy_reference_ops_from_call): Remember call fntype. * gcc.dg/tree-ssa/pr88087.c: New testcase. From-SVN: r266301 --- gcc/tree-ssa-sccvn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tree-ssa-sccvn.c') diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index 4364191..01bedf5 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -1206,7 +1206,7 @@ copy_reference_ops_from_call (gcall *call, /* Copy the type, opcode, function, static chain and EH region, if any. */ memset (&temp, 0, sizeof (temp)); - temp.type = gimple_call_return_type (call); + temp.type = gimple_call_fntype (call); temp.opcode = CALL_EXPR; temp.op0 = gimple_call_fn (call); temp.op1 = gimple_call_chain (call); -- cgit v1.1