[Openmp-commits] [openmp] r246064 - Remove redundant definition of thr in kmp_gsupport.c

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Wed Aug 26 12:55:13 PDT 2015


Author: jlpeyton
Date: Wed Aug 26 14:55:13 2015
New Revision: 246064

URL: http://llvm.org/viewvc/llvm-project?rev=246064&view=rev
Log:
Remove redundant definition of thr in kmp_gsupport.c

There is a thr variable with the same definition at the top of this function 
as the thr variable inside the if block.

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

Modified: openmp/trunk/runtime/src/kmp_gsupport.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_gsupport.c?rev=246064&r1=246063&r2=246064&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_gsupport.c (original)
+++ openmp/trunk/runtime/src/kmp_gsupport.c Wed Aug 26 14:55:13 2015
@@ -522,8 +522,7 @@ xexpand(KMP_API_NAME_GOMP_PARALLEL_END)(
     }
 #endif
 
-    if (! __kmp_threads[gtid]->th.th_team->t.t_serialized) {
-        kmp_info_t *thr = __kmp_threads[gtid];
+    if (! thr->th.th_team->t.t_serialized) {
         __kmp_run_after_invoked_task(gtid, __kmp_tid_from_gtid(gtid), thr,
           thr->th.th_team);
 




More information about the Openmp-commits mailing list