[Openmp-commits] [openmp] r271377 - Fine tuning of TC* macros - small followup

Paul Osmialowski via Openmp-commits openmp-commits at lists.llvm.org
Wed Jun 1 02:59:26 PDT 2016


Author: pawosm01
Date: Wed Jun  1 04:59:26 2016
New Revision: 271377

URL: http://llvm.org/viewvc/llvm-project?rev=271377&view=rev
Log:
Fine tuning of TC* macros - small followup

As I replaced no-op TCR_4 with actual code, compiler complained while building debug build.
This patch moves 'cast to int' to the correct place.

Extension to Differential Revision: http://reviews.llvm.org/D19880

Modified:
    openmp/trunk/runtime/src/kmp_tasking.c

Modified: openmp/trunk/runtime/src/kmp_tasking.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_tasking.c?rev=271377&r1=271376&r2=271377&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_tasking.c (original)
+++ openmp/trunk/runtime/src/kmp_tasking.c Wed Jun  1 04:59:26 2016
@@ -1832,7 +1832,7 @@ static inline int __kmp_execute_tasks_te
 #else
     KMP_DEBUG_ASSERT( nthreads > 1 );
 #endif
-    KMP_DEBUG_ASSERT( TCR_4((int)*unfinished_threads) >= 0 );
+    KMP_DEBUG_ASSERT( (int)(TCR_4(*unfinished_threads)) >= 0 );
 
     // Choose tasks from our own work queue.
     start:




More information about the Openmp-commits mailing list