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:
parent
e32498c9c3
commit
0447708f8d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue