Fix a format string warning by noting that StringIsBreakpointName
authorEric Christopher <echristo@gmail.com>
Wed, 17 Dec 2014 22:26:32 +0000 (22:26 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 17 Dec 2014 22:26:32 +0000 (22:26 +0000)
will set the error accordingly and so there's no need to set it
again.

llvm-svn: 224468

lldb/source/Commands/CommandObjectBreakpoint.cpp

index 6b9db6a..ca82c4a 100644 (file)
@@ -245,8 +245,6 @@ public:
                 case 'N':
                     if (BreakpointID::StringIsBreakpointName(option_arg, error))
                         m_breakpoint_names.push_back (option_arg);
-                    else
-                        error.SetErrorStringWithFormat(error.AsCString());
                     break;
 
                 case 'o':