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;