[Openmp-commits] [openmp] 771f0fb - [OpenMP] Add NULL check in dispatcher debug output
via Openmp-commits
openmp-commits at lists.llvm.org
Thu Oct 29 12:08:28 PDT 2020
Author: Peyton, Jonathan L
Date: 2020-10-29T14:08:03-05:00
New Revision: 771f0fb92dc2746abd4db41d459d04bb578118a1
URL: https://github.com/llvm/llvm-project/commit/771f0fb92dc2746abd4db41d459d04bb578118a1
DIFF: https://github.com/llvm/llvm-project/commit/771f0fb92dc2746abd4db41d459d04bb578118a1.diff
LOG: [OpenMP] Add NULL check in dispatcher debug output
Patch by Nawrin Sultana
Differential Revision: https://reviews.llvm.org/D90403
Added:
Modified:
openmp/runtime/src/kmp_dispatch.cpp
Removed:
################################################################################
diff --git a/openmp/runtime/src/kmp_dispatch.cpp b/openmp/runtime/src/kmp_dispatch.cpp
index ca14bbc954af..610c9a025077 100644
--- a/openmp/runtime/src/kmp_dispatch.cpp
+++ b/openmp/runtime/src/kmp_dispatch.cpp
@@ -2016,7 +2016,8 @@ static int __kmp_dispatch_next(ident_t *loc, int gtid, kmp_int32 *p_last,
"__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
More information about the Openmp-commits
mailing list