diff --git a/lib/Demangle/Demangle.cpp b/lib/Demangle/Demangle.cpp index 71dafa0b2e4..000f75b6a97 100644 --- a/lib/Demangle/Demangle.cpp +++ b/lib/Demangle/Demangle.cpp @@ -31,6 +31,6 @@ std::string llvm::demangle(const std::string &MangledName) { return MangledName; std::string Ret = Demangled; - free(Demangled); + std::free(Demangled); return Ret; }