[Lldb-commits] [lldb] r213106 - Fix compile warning.

Greg Clayton gclayton at apple.com
Tue Jul 15 16:28:01 PDT 2014


Author: gclayton
Date: Tue Jul 15 18:27:56 2014
New Revision: 213106

URL: http://llvm.org/viewvc/llvm-project?rev=213106&view=rev
Log:
Fix compile warning.


Modified:
    lldb/trunk/test/lang/objc/foundation/main.m

Modified: lldb/trunk/test/lang/objc/foundation/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/main.m?rev=213106&r1=213105&r2=213106&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/main.m (original)
+++ lldb/trunk/test/lang/objc/foundation/main.m Tue Jul 15 18:27:56 2014
@@ -90,7 +90,7 @@ NSString *my_global_str = NULL;
 void
 Test_MyString (const char *program)
 {
-    my_global_str = [NSString stringWithString:@"This is a global string"];
+    my_global_str = @"This is a global string";
     NSString *str = [NSString stringWithFormat:@"Hello from '%s'", program];
     MyString *my = [[MyString alloc] initWithNSString:str];
     NSLog(@"MyString instance: %@", [my description]);





More information about the lldb-commits mailing list