Change the type of Undecorated to unique_ptr<char[]> since we're looking at a null terminated string and not a single character.

Fixes an error in tcmalloc sized delete checking.

llvm-svn: 306780
This commit is contained in:
Eric Christopher 2017-06-30 01:45:56 +00:00
parent 710c1c8faa
commit 5dcdc7a3d3
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ static Optional<std::string> demangle(StringRef Name, bool StripUnderscore) {
return None;
int Status;
std::unique_ptr<char> Undecorated(
std::unique_ptr<char[]> Undecorated(
itaniumDemangle(Name.str().c_str(), nullptr, nullptr, &Status));
if (Status != 0)
return None;