From 782a16db4db5bc9c145fbe27c8c652c0d4cb49d7 Mon Sep 17 00:00:00 2001 From: Mats Petersson Date: Tue, 16 May 2023 17:15:17 +0100 Subject: [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 so that the relevant function declaration is included. No functional change intended. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D150687 --- openmp/runtime/src/kmp_collapse.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openmp') 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 + #if OMPT_SUPPORT #include "ompt-specific.h" #endif -- cgit v1.2.1