[SystemZ][z/OS] vasprintf fix libc++
authorMuiez Ahmed <muiez@ibm.com>
Thu, 18 Mar 2021 18:23:55 +0000 (14:23 -0400)
committerMuiez Ahmed <muiez@ibm.com>
Thu, 18 Mar 2021 19:00:57 +0000 (15:00 -0400)
commitf6af5efcec4171080c036ad55a2b4db9fc5c37fa
tree1a1b2394e2e406d39bba5ce94a1662664c2664d7
parent6b053c9867a3ede32e51cef3ed972d5ce5b38bc0
[SystemZ][z/OS] vasprintf fix libc++

The aim is to use the correct vasprintf implementation for z/OS libc++, where a copy of va_list ap is needed. In particular, it avoids the potential that the initial internal call to vsnprintf will modify ap and the subsequent call to vsnprintf will use that modified ap.

Differential Revision: https://reviews.llvm.org/D97473
libcxx/include/__support/ibm/xlocale.h
libcxx/src/support/win32/support.cpp