From 47b2ec11a193f96a66ab1f698352daaf8e143ccd Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 30 Jun 2017 01:45:56 +0000 Subject: [PATCH] Change the type of Undecorated to unique_ptr since we're looking at a null terminated string and not a single character. Fixes an error in tcmalloc sized delete checking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306780 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-nm/llvm-nm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp index 29836da1fcd..b25c4775e8d 100644 --- a/tools/llvm-nm/llvm-nm.cpp +++ b/tools/llvm-nm/llvm-nm.cpp @@ -672,7 +672,7 @@ static Optional demangle(StringRef Name, bool StripUnderscore) { return None; int Status; - std::unique_ptr Undecorated( + std::unique_ptr Undecorated( itaniumDemangle(Name.str().c_str(), nullptr, nullptr, &Status)); if (Status != 0) return None; -- 2.40.0