diff options
| author | Gheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com> | 2019-05-13 22:11:44 +0000 |
|---|---|---|
| committer | Gheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com> | 2019-05-13 22:11:44 +0000 |
| commit | 946957189d6b43a3d2079403633c183224813f95 (patch) | |
| tree | 812d493681bcc2b878398004167a7dad942f911b /clang/lib/Headers/openmp_wrappers/cmath | |
| parent | 44a7abe584103da1c261fa706dc08f7f4c0dda52 (diff) | |
| download | bcm5719-llvm-946957189d6b43a3d2079403633c183224813f95.tar.gz bcm5719-llvm-946957189d6b43a3d2079403633c183224813f95.zip | |
[OpenMP][Clang][BugFix] Split declares and math functions inclusion.
Summary: This patches fixes an issue in which the __clang_cuda_cmath.h header is being included even when cmath or math.h headers are not included.
Reviewers: jdoerfert, ABataev, hfinkel, caomhin, tra
Reviewed By: tra
Subscribers: tra, mgorny, guansong, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D61765
llvm-svn: 360626
Diffstat (limited to 'clang/lib/Headers/openmp_wrappers/cmath')
| -rw-r--r-- | clang/lib/Headers/openmp_wrappers/cmath | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Headers/openmp_wrappers/cmath b/clang/lib/Headers/openmp_wrappers/cmath index 0f34375d45f..a5183a1d8d1 100644 --- a/clang/lib/Headers/openmp_wrappers/cmath +++ b/clang/lib/Headers/openmp_wrappers/cmath @@ -7,9 +7,7 @@ *===-----------------------------------------------------------------------=== */ -#ifndef __cplusplus #include <__clang_openmp_math.h> -#endif #ifndef __CLANG_NO_HOST_MATH__ #include_next <cmath> |

