[Openmp-commits] [PATCH] D21384: Fix for crash in task dependencies

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Thu Jun 16 13:25:28 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL272949: Fix for crash in task dependencies (authored by jlpeyton).

Changed prior to commit:
  http://reviews.llvm.org/D21384?vs=60845&id=61017#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D21384

Files:
  openmp/trunk/runtime/src/kmp_taskdeps.cpp

Index: openmp/trunk/runtime/src/kmp_taskdeps.cpp
===================================================================
--- openmp/trunk/runtime/src/kmp_taskdeps.cpp
+++ openmp/trunk/runtime/src/kmp_taskdeps.cpp
@@ -552,7 +552,7 @@
     //   - if the dephash is not yet created it means we have nothing to wait for
     bool ignore = current_task->td_flags.team_serial || current_task->td_flags.tasking_ser || current_task->td_flags.final;
 #if OMP_45_ENABLED
-    ignore = ignore && thread->th.th_task_team->tt.tt_found_proxy_tasks == FALSE;
+    ignore = ignore && thread->th.th_task_team != NULL && thread->th.th_task_team->tt.tt_found_proxy_tasks == FALSE;
 #endif
     ignore = ignore || current_task->td_dephash == NULL;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21384.61017.patch
Type: text/x-patch
Size: 726 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160616/b73f378b/attachment.bin>


More information about the Openmp-commits mailing list