File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed
lldb/include/lldb/Interpreter Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -51,22 +51,13 @@ class ScriptedInterface {
51
51
52
52
template <typename T = StructuredData::ObjectSP>
53
53
bool CheckStructuredDataObject (llvm::StringRef caller, T obj, Status &error) {
54
- if (!obj) {
55
- return ErrorWithMessage<bool >(caller,
56
- llvm::Twine (" Null StructuredData object (" +
57
- llvm::Twine (error.AsCString ()) +
58
- llvm::Twine (" )." ))
59
- .str (),
54
+ if (!obj)
55
+ return ErrorWithMessage<bool >(caller, " Null Structured Data object" ,
60
56
error);
61
- }
62
57
63
58
if (!obj->IsValid ()) {
64
- return ErrorWithMessage<bool >(
65
- caller,
66
- llvm::Twine (" Invalid StructuredData object (" +
67
- llvm::Twine (error.AsCString ()) + llvm::Twine (" )." ))
68
- .str (),
69
- error);
59
+ return ErrorWithMessage<bool >(caller, " Invalid StructuredData object" ,
60
+ error);
70
61
}
71
62
72
63
if (error.Fail ())
You can’t perform that action at this time.
0 commit comments