[OpenMP] Fix build issue with libomp when OMPT is disabled

This commit is contained in:
Shilei Tian 2023-09-06 23:40:24 -04:00
parent 0762b2e6ca
commit 010a5a737b

View File

@ -351,7 +351,7 @@ void __kmpc_fork_call_if(ident_t *loc, kmp_int32 argc, kmpc_micro microtask,
} else {
__kmpc_serialized_parallel(loc, gtid);
#ifdef OMPT_SUPPORT
#if OMPT_SUPPORT
void *exit_frame_ptr;
#endif
@ -359,7 +359,7 @@ void __kmpc_fork_call_if(ident_t *loc, kmp_int32 argc, kmpc_micro microtask,
__kmp_invoke_microtask(VOLATILE_CAST(microtask_t) microtask, gtid,
/*npr=*/0,
/*argc=*/1, &args
#ifdef OMPT_SUPPORT
#if OMPT_SUPPORT
,
&exit_frame_ptr
#endif
@ -369,7 +369,7 @@ void __kmpc_fork_call_if(ident_t *loc, kmp_int32 argc, kmpc_micro microtask,
/*npr=*/0,
/*argc=*/0,
/*args=*/nullptr
#ifdef OMPT_SUPPORT
#if OMPT_SUPPORT
,
&exit_frame_ptr
#endif