For combined parallel loop constructs, the master task launches an outlined function directly from the runtime. In such cases, the OMPT frame object for the master task needs to have its exit_frame field set before the outlined function is called. This patch corrects an omission in the OMPT support
Please provide test cases, so that we can understand the impact of this change.
inner_frame resolves to the same address as parent_frame in line 1087, so you could just use this variable.
The task executing the loop body is still the same task as the task executing the parallel region.
This will overwrite the value written, when the parallel region begins.