[Openmp-commits] [openmp] r336586 - Fix const cast problem introduced in r336563
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Mon Jul 9 12:09:31 PDT 2018
Author: jlpeyton
Date: Mon Jul 9 12:09:31 2018
New Revision: 336586
URL: http://llvm.org/viewvc/llvm-project?rev=336586&view=rev
Log:
Fix const cast problem introduced in r336563
336563 eliminated CCAST() macros caused build failures
Modified:
openmp/trunk/runtime/src/kmp_wait_release.h
Modified: openmp/trunk/runtime/src/kmp_wait_release.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_wait_release.h?rev=336586&r1=336585&r2=336586&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_wait_release.h (original)
+++ openmp/trunk/runtime/src/kmp_wait_release.h Mon Jul 9 12:09:31 2018
@@ -172,7 +172,7 @@ __kmp_wait_template(kmp_info_t *this_thr
KMP_FSYNC_SPIN_INIT(spin, NULL);
if (flag->done_check()) {
- KMP_FSYNC_SPIN_ACQUIRED(spin);
+ KMP_FSYNC_SPIN_ACQUIRED(CCAST(void *, spin));
return;
}
th_gtid = this_thr->th.th_info.ds.ds_gtid;
@@ -343,7 +343,7 @@ final_spin=FALSE)
} // if
} // if
- KMP_FSYNC_SPIN_PREPARE(spin);
+ KMP_FSYNC_SPIN_PREPARE(CCAST(void *, spin));
if (TCR_4(__kmp_global.g.g_done)) {
if (__kmp_global.g.g_abort)
__kmp_abort_thread();
@@ -450,7 +450,7 @@ final_spin=FALSE)
}
#endif
- KMP_FSYNC_SPIN_ACQUIRED(spin);
+ KMP_FSYNC_SPIN_ACQUIRED(CCAST(void *, spin));
}
/* Release any threads specified as waiting on the flag by releasing the flag
More information about the Openmp-commits
mailing list