* tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
callers.
From-SVN: r219835
+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
{
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;