summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2015-08-26 19:55:13 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2015-08-26 19:55:13 +0000
commit57d19ce33ae18f7869e8bf41140c4d0b16e76b72 (patch)
tree0abd396d4e351f466d2f5ad2e80bf0a38f491cfd /openmp/runtime/src
parentb1490b6172c48cf802b24bd738c90eeb019436fe (diff)
downloadbcm5719-llvm-57d19ce33ae18f7869e8bf41140c4d0b16e76b72.tar.gz
bcm5719-llvm-57d19ce33ae18f7869e8bf41140c4d0b16e76b72.zip
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. llvm-svn: 246064
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r--openmp/runtime/src/kmp_gsupport.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openmp/runtime/src/kmp_gsupport.c b/openmp/runtime/src/kmp_gsupport.c
index 42d58e50532..21bc0fbbfb6 100644
--- a/openmp/runtime/src/kmp_gsupport.c
+++ b/openmp/runtime/src/kmp_gsupport.c
@@ -522,8 +522,7 @@ xexpand(KMP_API_NAME_GOMP_PARALLEL_END)(void)
}
#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);
OpenPOWER on IntegriCloud