[OMPT] Fix tool initialization returning 0
authorJoachim Protze <protze@itc.rwth-aachen.de>
Tue, 6 Feb 2018 08:41:27 +0000 (08:41 +0000)
committerJoachim Protze <protze@itc.rwth-aachen.de>
Tue, 6 Feb 2018 08:41:27 +0000 (08:41 +0000)
commit2a20299f9158fb8403b9a11a1eb8f803cb4a562a
tree916be80d6dc63bc97b2b2353e51937c1d9db86a0
parent333be329c49bffa98741085a0ae0962e754cc7cf
[OMPT] Fix tool initialization returning 0

If tool initialization returns 0, OMPT should not be active. The current
implementation provided some callback invocations in this case.

Differential Revision: https://reviews.llvm.org/D42709

llvm-svn: 324320
openmp/runtime/src/ompt-general.cpp