summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/ompt-specific.c
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/src/ompt-specific.c')
-rw-r--r--openmp/runtime/src/ompt-specific.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/openmp/runtime/src/ompt-specific.c b/openmp/runtime/src/ompt-specific.c
index 506b2822818..9a962f4e0b6 100644
--- a/openmp/runtime/src/ompt-specific.c
+++ b/openmp/runtime/src/ompt-specific.c
@@ -60,7 +60,12 @@ __ompt_get_teaminfo(int depth, int *size)
// next heavyweight team (if any) after
// lightweight teams are exhausted
- if (!lwt && team) team=team->t.t_parent;
+ if (!lwt && team) {
+ team=team->t.t_parent;
+ if (team) {
+ lwt = LWT_FROM_TEAM(team);
+ }
+ }
depth--;
}
OpenPOWER on IntegriCloud