diff options
author | xingxue-ibm <57193974+xingxue-ibm@users.noreply.github.com> | 2023-11-09 13:30:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 13:30:36 -0500 |
commit | 90a9e9f638073f46a36e0fda44948bc74da5f641 (patch) | |
tree | e475a4d7c0d9a4892841e4b2d7dddfb6944d34f2 /openmp/runtime/src/z_Linux_util.cpp | |
parent | 72f30acfed9725d056ddf98582a9157252bae33a (diff) | |
download | llvm-90a9e9f638073f46a36e0fda44948bc74da5f641.zip llvm-90a9e9f638073f46a36e0fda44948bc74da5f641.tar.gz llvm-90a9e9f638073f46a36e0fda44948bc74da5f641.tar.bz2 |
[OpenMP] Fix a condition for KMP_OS_SOLARIS. (#71831)
Line 75 of `z_Linux_util.cpp` checks `#ifdef KMP_OS_SOLARIS` which is
always true regardless of the building platform because macro
`KMP_OS_SOLARIS` is always defined in line 23 of `kmp_platform.h`:
`define KMP_OS_SOLARIS 0`.
Diffstat (limited to 'openmp/runtime/src/z_Linux_util.cpp')
-rw-r--r-- | openmp/runtime/src/z_Linux_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/z_Linux_util.cpp b/openmp/runtime/src/z_Linux_util.cpp index e17bed2..9e1a7c7 100644 --- a/openmp/runtime/src/z_Linux_util.cpp +++ b/openmp/runtime/src/z_Linux_util.cpp @@ -72,7 +72,7 @@ struct kmp_sys_timer { struct timespec start; }; -#ifdef KMP_OS_SOLARIS +#if KMP_OS_SOLARIS // Convert timeval to timespec. #define TIMEVAL_TO_TIMESPEC(tv, ts) \ do { \ |