<rdar://problem/13928053>
Fix the fact that an empty NSString (e.g. one obtained from @"" would show no summary)
llvm-svn: 182173
diff --git a/lldb/source/DataFormatters/CXXFormatterFunctions.cpp b/lldb/source/DataFormatters/CXXFormatterFunctions.cpp
index b1d0f7d..4665420 100644
--- a/lldb/source/DataFormatters/CXXFormatterFunctions.cpp
+++ b/lldb/source/DataFormatters/CXXFormatterFunctions.cpp
@@ -939,8 +939,13 @@
if (my_error.Fail())
return false;
+
+ dest.Printf("%c%c",prefix_token,quote);
+
if (my_data_read)
- dest.Printf("%c%c%s%c",prefix_token,quote,(char*)buffer_sp->GetBytes(),quote);
+ dest.Printf("%s",(char*)buffer_sp->GetBytes());
+
+ dest.Printf("%c",quote);
return true;
}