diff options
Diffstat (limited to 'gcc/hsa-common.c')
-rw-r--r-- | gcc/hsa-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/hsa-common.c b/gcc/hsa-common.c index f64105c..0e18fa7 100644 --- a/gcc/hsa-common.c +++ b/gcc/hsa-common.c @@ -810,8 +810,8 @@ void hsa_summary_t::link_functions (cgraph_node *gpu, cgraph_node *host, hsa_function_kind kind, bool gridified_kernel_p) { - hsa_function_summary *gpu_summary = get (gpu); - hsa_function_summary *host_summary = get (host); + hsa_function_summary *gpu_summary = get_create (gpu); + hsa_function_summary *host_summary = get_create (host); gpu_summary->m_kind = kind; host_summary->m_kind = kind; @@ -840,7 +840,7 @@ hsa_register_kernel (cgraph_node *host) { if (hsa_summaries == NULL) hsa_summaries = new hsa_summary_t (symtab); - hsa_function_summary *s = hsa_summaries->get (host); + hsa_function_summary *s = hsa_summaries->get_create (host); s->m_kind = HSA_KERNEL; } |