[OpenMP] Fix issue with directives used in a macro.
authorSamuel Antao <sfantao@us.ibm.com>
Thu, 20 Oct 2016 13:20:17 +0000 (13:20 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Thu, 20 Oct 2016 13:20:17 +0000 (13:20 +0000)
commit335151914aaea2475fb92e1d9e838bddc106a185
treedf3477c16d357fcd163aae25bdd2493cb6259beb
parent7c870a7e54aed16f4d7dbba5cdb79cc21c4ff9ba
[OpenMP] Fix issue with directives used in a macro.

Summary:
If directives are used in a macro, clang complains with:
```
src/projects/openmp/runtime/src/kmp_runtime.c:7486:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive]
#if KMP_USE_MONITOR
```

This patch fixes two occurrences of the issue in `kmp_runtime.cpp`.

Reviewers: tlwilmar, jlpeyton, AndreyChurbanov, Hahnfeld

Subscribers: Hahnfeld, openmp-commits

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

llvm-svn: 284728
openmp/runtime/src/kmp_runtime.c