diff options
author | Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> | 2016-02-09 07:07:30 +0000 |
---|---|---|
committer | Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> | 2016-02-09 07:07:30 +0000 |
commit | 9dffeff894bc190ca31723a2eb3c21f972d2256f (patch) | |
tree | 5f4d2d91b5e223640bda1cda1cd3012888002faa | |
parent | b79e55577ed70da57eb650afbd76ac8b6406f647 (diff) | |
download | bcm5719-llvm-9dffeff894bc190ca31723a2eb3c21f972d2256f.tar.gz bcm5719-llvm-9dffeff894bc190ca31723a2eb3c21f972d2256f.zip |
[GCC] GOMP_task: Change argument type of if_cond from int to bool
(libgomp has bool as well)
This was causing a test failure in omp_test_if.c when building with GCC in
Debug mode. I have verified that GCC versions 4.9.2 and 5.3.0 now work and
compile-tested this change with clang 3.7.1 and Intel Compiler 16.0.
Differential Revision: http://reviews.llvm.org/D16921
llvm-svn: 260204
-rw-r--r-- | openmp/runtime/src/kmp_gsupport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_gsupport.c b/openmp/runtime/src/kmp_gsupport.c index 779ac408306..406b2795da7 100644 --- a/openmp/runtime/src/kmp_gsupport.c +++ b/openmp/runtime/src/kmp_gsupport.c @@ -924,7 +924,7 @@ PARALLEL_LOOP_START(xexpand(KMP_API_NAME_GOMP_PARALLEL_LOOP_RUNTIME_START), void xexpand(KMP_API_NAME_GOMP_TASK)(void (*func)(void *), void *data, void (*copy_func)(void *, void *), - long arg_size, long arg_align, int if_cond, unsigned gomp_flags) + long arg_size, long arg_align, bool if_cond, unsigned gomp_flags) { MKLOC(loc, "GOMP_task"); int gtid = __kmp_entry_gtid(); |