[llvm-branch-commits] [openmp] r318175 - Merging r311269:

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Nov 14 11:16:52 PST 2017


Author: tstellar
Date: Tue Nov 14 11:16:52 2017
New Revision: 318175

URL: http://llvm.org/viewvc/llvm-project?rev=318175&view=rev
Log:
Merging r311269:

------------------------------------------------------------------------
r311269 | jlpeyton | 2017-08-19 16:53:36 -0700 (Sat, 19 Aug 2017) | 8 lines

Use va_copy instead of __va_copy to fix building libomp against musl libc

Fixes https://bugs.llvm.org/show_bug.cgi?id=34040

Patch by Peter Levine

Differential Revision: https://reviews.llvm.org/D36343

------------------------------------------------------------------------

Modified:
    openmp/branches/release_50/runtime/src/kmp_str.cpp

Modified: openmp/branches/release_50/runtime/src/kmp_str.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/branches/release_50/runtime/src/kmp_str.cpp?rev=318175&r1=318174&r2=318175&view=diff
==============================================================================
--- openmp/branches/release_50/runtime/src/kmp_str.cpp (original)
+++ openmp/branches/release_50/runtime/src/kmp_str.cpp Tue Nov 14 11:16:52 2017
@@ -168,7 +168,7 @@ void __kmp_str_buf_vprint(kmp_str_buf_t
 
 #if !KMP_OS_WINDOWS
       va_list _args;
-      __va_copy(_args, args); // Make copy of args.
+      va_copy(_args, args); // Make copy of args.
 #define args _args // Substitute args with its copy, _args.
 #endif // KMP_OS_WINDOWS
       rc = KMP_VSNPRINTF(buffer->str + buffer->used, free, format, args);




More information about the llvm-branch-commits mailing list