[Lldb-commits] [lldb] r303278 - Fix error string set in AddName to take a StringRef.

Ted Woodward via lldb-commits lldb-commits at lists.llvm.org
Wed May 17 10:48:55 PDT 2017


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())




More information about the lldb-commits mailing list