Initialize pointer in string conversion helpers to prevent MSAN diagnostic.
authorEric Fiselier <eric@efcs.ca>
Fri, 14 Nov 2014 22:23:57 +0000 (22:23 +0000)
committerEric Fiselier <eric@efcs.ca>
Fri, 14 Nov 2014 22:23:57 +0000 (22:23 +0000)
commitd6bd7bf6ba4f71338f2cf323624078cdbbb6b374
treec63176030ced8b20780b46d04cc2aec8c018257a
parent0425c7c72615a69a0182dabd23b7caf16a709690
Initialize pointer in string conversion helpers to prevent MSAN diagnostic.

Since the initialization of the pointer happens across the libc library boundry
MSAN will not know the pointer was initialized. This fixes MSAN failures in
test/strings/string.conversions.

llvm-svn: 222052
libcxx/src/string.cpp