+2016-05-04 Jan Hubicka <hubicka@ucw.cz>
+
+ * tree-inline.c (expand_call_inline): Fix path dealing with
+ making lhs of call statement undefined.
+
2016-05-04 Jan Hubicka <hubicka@ucw.cz>
* cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
{
tree name = gimple_call_lhs (stmt);
tree var = SSA_NAME_VAR (name);
- tree def = ssa_default_def (cfun, var);
+ tree def = var ? ssa_default_def (cfun, var) : NULL;
if (def)
{
}
else
{
+ if (!var)
+ {
+ tree var = create_tmp_reg_fn (cfun, TREE_TYPE (name), NULL);
+ SET_SSA_NAME_VAR_OR_IDENTIFIER (name, var);
+ }
/* Otherwise make this variable undefined. */
gsi_remove (&stmt_gsi, true);
set_ssa_default_def (cfun, var, name);