diff --git a/openmp/runtime/src/ompt-specific.h b/openmp/runtime/src/ompt-specific.h --- a/openmp/runtime/src/ompt-specific.h +++ b/openmp/runtime/src/ompt-specific.h @@ -76,8 +76,7 @@ } #define OMPT_STORE_RETURN_ADDRESS(gtid) \ - if (ompt_enabled.enabled && gtid >= 0 && __kmp_threads[gtid] && \ - !__kmp_threads[gtid]->th.ompt_thread_info.return_address) \ + if (ompt_enabled.enabled && gtid >= 0 && __kmp_threads[gtid]) \ __kmp_threads[gtid]->th.ompt_thread_info.return_address = \ __builtin_return_address(0) #define OMPT_LOAD_RETURN_ADDRESS(gtid) __ompt_load_return_address(gtid)