[Openmp-commits] [PATCH] D90403: [OpenMP] Add NULL check in dispatcher debug output
Nawrin Sultana via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Oct 29 09:01:29 PDT 2020
Nawrin created this revision.
Nawrin added a reviewer: jlpeyton.
Nawrin added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
Nawrin requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90403
Files:
openmp/runtime/src/kmp_dispatch.cpp
Index: openmp/runtime/src/kmp_dispatch.cpp
===================================================================
--- openmp/runtime/src/kmp_dispatch.cpp
+++ openmp/runtime/src/kmp_dispatch.cpp
@@ -2016,7 +2016,8 @@
"__kmp_dispatch_next: T#%%d serialized case: p_lb:%%%s "
"p_ub:%%%s p_st:%%%s p_last:%%p %%d returning:%%d\n",
traits_t<T>::spec, traits_t<T>::spec, traits_t<ST>::spec);
- KD_TRACE(10, (buff, gtid, *p_lb, *p_ub, *p_st, p_last, *p_last, status));
+ KD_TRACE(10, (buff, gtid, *p_lb, *p_ub, *p_st, p_last,
+ (p_last ? *p_last : 0), status));
__kmp_str_free(&buff);
}
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90403.301639.patch
Type: text/x-patch
Size: 660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20201029/2201e762/attachment.bin>
More information about the Openmp-commits
mailing list