[PATCH] D65284: [OpenMP] Fix build of stubs library
Jonas Hahnfeld via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 25 10:52:44 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL367041: [OpenMP] Fix build of stubs library, NFC. (authored by Hahnfeld, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D65284?vs=211766&id=211793#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65284/new/
https://reviews.llvm.org/D65284
Files:
openmp/trunk/runtime/src/kmp_stub.cpp
Index: openmp/trunk/runtime/src/kmp_stub.cpp
===================================================================
--- openmp/trunk/runtime/src/kmp_stub.cpp
+++ openmp/trunk/runtime/src/kmp_stub.cpp
@@ -164,7 +164,7 @@
#if KMP_OS_WINDOWS
res = _aligned_malloc(sz, a);
#else
- if (err = posix_memalign(&res, a, sz)) {
+ if ((err = posix_memalign(&res, a, sz))) {
errno = err; // can be EINVAL or ENOMEM
res = NULL;
}
@@ -277,7 +277,7 @@
kmp_proc_bind_t __kmps_get_proc_bind(void) {
i;
- return 0;
+ return proc_bind_false;
} // __kmps_get_proc_bind
double __kmps_get_wtime(void) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65284.211793.patch
Type: text/x-patch
Size: 610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190725/86a64d4c/attachment.bin>
More information about the llvm-commits
mailing list