Author: ted Date: Wed May 17 12:48:55 2017 New Revision: 303278 URL: http://llvm.org/viewvc/llvm-project?rev=303278&view=rev Log: Fix error string set in AddName to take a StringRef.
Modified: lldb/trunk/source/Breakpoint/Breakpoint.cpp Modified: lldb/trunk/source/Breakpoint/Breakpoint.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/Breakpoint.cpp?rev=303278&r1=303277&r2=303278&view=diff ============================================================================== --- lldb/trunk/source/Breakpoint/Breakpoint.cpp (original) +++ lldb/trunk/source/Breakpoint/Breakpoint.cpp Wed May 17 12:48:55 2017 @@ -837,8 +837,8 @@ bool Breakpoint::AddName(llvm::StringRef if (new_name.empty()) return false; if (!BreakpointID::StringIsBreakpointName(new_name, error)) { - error.SetErrorStringWithFormat("input name \"%s\" not a breakpoint name.", - new_name); + error.SetErrorStringWithFormatv("input name \"{0}\" not a breakpoint name.", + new_name); return false; } if (!error.Success()) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits