forked from OSchip/llvm-project
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:
parent
710c1c8faa
commit
5dcdc7a3d3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue