summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMats Petersson <mats.petersson@arm.com>2023-05-16 17:15:17 +0100
committerMats Petersson <mats.petersson@arm.com>2023-05-17 18:11:20 +0100
commit782a16db4db5bc9c145fbe27c8c652c0d4cb49d7 (patch)
tree6e08e417197016bae8cc68ac32b8e6fd96e3cf4b
parentacce2a315945e386a7be6f014ebe90c2a28f38d9 (diff)
downloadllvm-782a16db4db5bc9c145fbe27c8c652c0d4cb49d7.tar.gz
[OpenMP]Fix trivial build failure in MacOS
MacOS build of LLVM with OpenMP enabled fails with an error that it doesn't know what std::abs is. Fix by including <cmath> so that the relevant function declaration is included. No functional change intended. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D150687
-rw-r--r--openmp/runtime/src/kmp_collapse.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/runtime/src/kmp_collapse.cpp b/openmp/runtime/src/kmp_collapse.cpp
index 4ae4789e9821..f7b72a1d6953 100644
--- a/openmp/runtime/src/kmp_collapse.cpp
+++ b/openmp/runtime/src/kmp_collapse.cpp
@@ -18,6 +18,8 @@
#include "kmp_str.h"
#include "kmp_collapse.h"
+#include <cmath>
+
#if OMPT_SUPPORT
#include "ompt-specific.h"
#endif