[OpenMP] Remove unnecessary pointer checks in a few locations
authorHansang Bae <hansang.bae@intel.com>
Sat, 23 Jan 2021 01:18:50 +0000 (19:18 -0600)
committerHansang Bae <hansang.bae@intel.com>
Sat, 23 Jan 2021 01:18:50 +0000 (19:18 -0600)
commit480cbed31e74b0db3d31d78789b639af250ce9fe
treea7239785d3c7a007124508d2d137e390fcef4fb3
parentdc94cecac036b151cb4cababf5b0d986df39ac23
[OpenMP] Remove unnecessary pointer checks in a few locations

Also, return NULL from unsuccessful OMPT function lookup.

Differential Revision: https://reviews.llvm.org/D95277
openmp/runtime/src/kmp_taskdeps.cpp
openmp/runtime/src/ompt-general.cpp