tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk callers.

* tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
	callers.

From-SVN: r219835
This commit is contained in:
Ilya Enkovich 2015-01-19 10:28:34 +00:00 committed by Ilya Enkovich
parent c11d86b47f
commit 3d36be01e4
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
* tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
callers.
2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
* ipa-chkp.c (chkp_produce_thunks): Add early param

View File

@ -4884,7 +4884,7 @@ some_callers_have_mismatched_arguments_p (struct cgraph_node *node,
{
struct cgraph_edge *cs;
for (cs = node->callers; cs; cs = cs->next_caller)
if (!callsite_arguments_match_p (cs->call_stmt))
if (!cs->call_stmt || !callsite_arguments_match_p (cs->call_stmt))
return true;
return false;