diff --git a/lldb/source/Initialization/SystemInitializerCommon.cpp b/lldb/source/Initialization/SystemInitializerCommon.cpp --- a/lldb/source/Initialization/SystemInitializerCommon.cpp +++ b/lldb/source/Initialization/SystemInitializerCommon.cpp @@ -80,7 +80,7 @@ } if (llvm::Expected cwd = loader->LoadBuffer()) { - cwd->erase(std::remove_if(cwd->begin(), cwd->end(), std::iscntrl), + cwd->erase(std::remove_if(cwd->begin(), cwd->end(), [](char c) { return std::iscntrl(c); }), cwd->end()); if (std::error_code ec = FileSystem::Instance() .GetVirtualFileSystem()