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

llvm-svn: 311269
This commit is contained in:
Jonathan Peyton 2017-08-19 23:53:36 +00:00
parent e32498c9c3
commit 0447708f8d
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ void __kmp_str_buf_vprint(kmp_str_buf_t *buffer, char const *format,
#if !KMP_OS_WINDOWS #if !KMP_OS_WINDOWS
va_list _args; 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. #define args _args // Substitute args with its copy, _args.
#endif // KMP_OS_WINDOWS #endif // KMP_OS_WINDOWS
rc = KMP_VSNPRINTF(buffer->str + buffer->used, free, format, args); rc = KMP_VSNPRINTF(buffer->str + buffer->used, free, format, args);