diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-01-15 13:20:50 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-01-15 13:20:50 +0000 |
commit | a1dc5f3f6808a90bd006dfd0918a418564dfe227 (patch) | |
tree | d83a5575075861c6aa0f61bc77c9358642b3942f /gcc/cgraph.c | |
parent | f400b65dc33b04817230f953170aa853b43f93b9 (diff) | |
download | gcc-a1dc5f3f6808a90bd006dfd0918a418564dfe227.tar.gz |
Merge branches/gcc-6-branch rev 256699.
Change-Id: Ib35a6e2c663e57fd6c857b54fd4287bef5bddfa8
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 6ff8f26ef39..0c9d9696c63 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -1259,7 +1259,6 @@ cgraph_edge::redirect_call_stmt_to_callee (void) cgraph_edge *e = this; tree decl = gimple_call_fndecl (e->call_stmt); - tree lhs = gimple_call_lhs (e->call_stmt); gcall *new_stmt; gimple_stmt_iterator gsi; bool skip_bounds = false; @@ -1529,6 +1528,7 @@ cgraph_edge::redirect_call_stmt_to_callee (void) gimple_call_set_fntype (new_stmt, TREE_TYPE (e->callee->decl)); /* If the call becomes noreturn, remove the LHS if possible. */ + tree lhs = gimple_call_lhs (new_stmt); if (lhs && (gimple_call_flags (new_stmt) & ECF_NORETURN) && (VOID_TYPE_P (TREE_TYPE (gimple_call_fntype (new_stmt))) |