Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2017-10-10 22:57:45 +0300
committerTom Stellard <tstellar@redhat.com>2017-10-10 22:57:45 +0300
commit7aaddf659d1bc4a3c953931c6d00e6eb8c5e6484 (patch)
tree78279cee0814b1edd5dce60480715b013d284285
parente97b489fd545e4b74e13188cc96d2aa3cfee8142 (diff)
Merging r314513:
------------------------------------------------------------------------ r314513 | hahnfeld | 2017-09-29 06:53:03 -0700 (Fri, 29 Sep 2017) | 3 lines [test] Fix uninitialized memory in omp_taskloop_grainsize.c result was never initialized to zero which sometimes failed the test. ------------------------------------------------------------------------ llvm-svn: 315353
-rw-r--r--openmp/runtime/test/tasking/omp_taskloop_grainsize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openmp/runtime/test/tasking/omp_taskloop_grainsize.c b/openmp/runtime/test/tasking/omp_taskloop_grainsize.c
index d8516ac9e3fa..1743d0adad14 100644
--- a/openmp/runtime/test/tasking/omp_taskloop_grainsize.c
+++ b/openmp/runtime/test/tasking/omp_taskloop_grainsize.c
@@ -17,7 +17,8 @@
int test_omp_taskloop_grainsize()
{
- int i, grainsize, count, tmp_count, result, num_off;
+ int result = 0;
+ int i, grainsize, count, tmp_count, num_off;
int *tmp, *tids, *tidsArray;
tidsArray = (int *)malloc(sizeof(int) * CFDMAX_SIZE);