diff options
author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-04-02 13:27:08 +0000 |
---|---|---|
committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-04-02 13:27:08 +0000 |
commit | 74bf17b8ff5b7cd6908f5d7a59739479297f668e (patch) | |
tree | cda032662a2866644a9c615e05e0c9d1572e1ef1 /openmp/runtime/src/z_Windows_NT_util.c | |
parent | 1362ae750fbd9cbf32e23a56852a5d116720182d (diff) | |
download | bcm5719-llvm-74bf17b8ff5b7cd6908f5d7a59739479297f668e.tar.gz bcm5719-llvm-74bf17b8ff5b7cd6908f5d7a59739479297f668e.zip |
Replace some unsafe API calls with safe alternatives on Windows, prepare code for similar actions on other platforms - wrap unsafe API calls into macros.
llvm-svn: 233915
Diffstat (limited to 'openmp/runtime/src/z_Windows_NT_util.c')
-rw-r--r-- | openmp/runtime/src/z_Windows_NT_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/z_Windows_NT_util.c b/openmp/runtime/src/z_Windows_NT_util.c index 69b01be4300..41f5df0946f 100644 --- a/openmp/runtime/src/z_Windows_NT_util.c +++ b/openmp/runtime/src/z_Windows_NT_util.c @@ -1190,7 +1190,7 @@ __kmp_launch_worker( void *arg ) #endif /* KMP_ARCH_X86 || KMP_ARCH_X86_64 */ if ( __kmp_stkoffset > 0 && gtid > 0 ) { - padding = _alloca( gtid * __kmp_stkoffset ); + padding = KMP_ALLOCA( gtid * __kmp_stkoffset ); } KMP_FSYNC_RELEASING( &this_thr -> th.th_info.ds.ds_alive ); |