1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

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 c3ca773ae3
commit 5545022a09

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;