Skip to content
  1. Jun 16, 2011
  2. Jun 15, 2011
  3. Jun 14, 2011
  4. Jun 11, 2011
    • Richard Smith's avatar
      938f40b5
    • Douglas Gregor's avatar
      Implement Objective-C Related Result Type semantics. · 33823727
      Douglas Gregor authored
      Related result types apply Cocoa conventions to the type of message
      sends and property accesses to Objective-C methods that are known to
      always return objects whose type is the same as the type of the
      receiving class (or a subclass thereof), such as +alloc and
      -init. This tightens up static type safety for Objective-C, so that we
      now diagnose mistakes like this:
      
      t.m:4:10: warning: incompatible pointer types initializing 'NSSet *'
      with an
            expression of type 'NSArray *' [-Wincompatible-pointer-types]
        NSSet *array = [[NSArray alloc] init];
               ^       ~~~~~~~~~~~~~~~~~~~~~~
      /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:72:1:
      note: 
            instance method 'init' is assumed to return an instance of its
            receiver
            type ('NSArray *')
      - (id)init;
      ^
      
      It also means that we get decent type inference when writing code in
      Objective-C++0x:
      
        auto array = [[NSMutableArray alloc] initWithObjects:@"one",  @"two",nil];
        //    ^ now infers NSMutableArray* rather than id
      
      llvm-svn: 132868
      33823727
  5. Jun 10, 2011
  6. Jun 08, 2011
  7. Jun 05, 2011
  8. Jun 04, 2011
    • Tanya Lattner's avatar
      Add support for builtin astype: · 55808c10
      Tanya Lattner authored
      __builtin_astype(): Used to reinterpreted as another data type of the same size using for both scalar and vector data types.
      Added test case.
      
      llvm-svn: 132612
      55808c10
    • Devang Patel's avatar
      Rework r132576. · 1b291b22
      Devang Patel authored
      Emit debug info only if there is an insertion point. The debug info should not force an insertion point. Codegen may later on decide to not emit code for some reason, see extensive comment in CodeGenFunction::EmitStmt(), and debug info should not get in the way.
      
      llvm-svn: 132610
      1b291b22
  9. Jun 03, 2011
  10. Jun 02, 2011
  11. Jun 01, 2011
  12. May 31, 2011
  13. May 30, 2011
  14. May 28, 2011
  15. May 27, 2011
  16. May 26, 2011
  17. May 25, 2011
  18. May 24, 2011
Loading