commit | 0d240e7807ffbc5084db156192589c852e30aeee | [log] [tgz] |
---|---|---|
author | AndreyChurbanov <andrey.churbanov@intel.com> | Wed Oct 27 16:38:09 2021 +0300 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Oct 27 07:01:05 2021 -0700 |
tree | 2eea90436bc39dce8ec5bb252a3f6eb6be7e4cd7 | |
parent | 57488e91be47afc92a36da93a4c2803b3ce15903 [diff] |
[OpenMP] libomp: Fix possible NULL dereference. According to dlsym description, the value of symbol could be NULL, and there is no error in this case. Thus dlerror will also return NULL in this case. We need to check the value returned by dlerror before printing it. Differential Revision: https://reviews.llvm.org/D112174 GitOrigin-RevId: c704b25b449418217f2e3ee41c100f3ee9a59e4c