Skip to content
  1. Oct 23, 2007
  2. Oct 19, 2007
  3. Oct 18, 2007
    • Steve Naroff's avatar
      · a78c464c
      Steve Naroff authored
      Fix a bug in Sema::CheckConditionalOperands(). When mixing pointers and null pointer constants, we need to promote the null pointer constant (which is an integer) to the pointer type. Test case is self explanatory.
      
      This surfaced yesterday, when compiling test/Sema/cocoa.m on Leopard. Since this has nothing to do with ObjC, it's kind of bizarre this hasn't shown up before. I imagine Cocoa.h on Leopard may have changed recently? 
      
      Thanks to Ted for localizing the bug and giving me a useful AST dump...
      
      llvm-svn: 43114
      a78c464c
    • Chris Lattner's avatar
      UsualArithmeticConversions is crashing with an assert · fac7ac41
      Chris Lattner authored
      when comparing "float" and "const float".  This "fixes" the
      issue, but may not be the right fix.  Steve, please review.
      
      Testcase here: test/Sema/usual-float.c
      
      llvm-svn: 43113
      fac7ac41
    • Steve Naroff's avatar
      · 8569d773
      Steve Naroff authored
      Fix the following bug...
      
      unsigned char asso_values[] = { 34 };
      int legal2() { 
        return asso_values[0]; 
      }
      
      The code that creates the new constant array type was operating on the original type.
      
      As a result, the constant type being generated was "unsigned char [1][]" (which is wrong).
      
      The fix is to operate on the element type - in this case, the correct type is "unsigned char [1]"
      
      I added this case to array-init.c, which clearly didn't catch this bogosity...
      
      llvm-svn: 43112
      8569d773
    • Chris Lattner's avatar
      remove typedef. · 810c1db3
      Chris Lattner authored
      llvm-svn: 43109
      810c1db3
  4. Oct 17, 2007
  5. Oct 16, 2007
  6. Oct 15, 2007
  7. Oct 13, 2007
  8. Oct 12, 2007
  9. Oct 11, 2007
  10. Oct 10, 2007
    • Steve Naroff's avatar
      · 7f549f18
      Steve Naroff authored
      - Make sure default return/argument types (for methods) default to "id".
      - Cache the "id" type in Sema...initialize ObjcIdType and TUScope (oops).
      - Fix ActOnInstanceMessage to allow for "id" type receivers...still work to do (next).
      
      llvm-svn: 42842
      7f549f18
    • Anders Carlsson's avatar
      Emit a warning when the body of an if block is a NullStmt. · db83d77c
      Anders Carlsson authored
      llvm-svn: 42840
      db83d77c
    • Steve Naroff's avatar
      · c62adb6d
      Steve Naroff authored
      Make sure methods with no return type default to "id".
      
      This fixes a crasher in Sema::MatchTwoMethodDeclarations(), identified by selector-overload.m (just added).
      
      Added Action::ActOnTranslationUnitScope() and renamed Action::PopScope to ActOnPopScope.
      
      Added a Translation Unit Scope instance variable to Sema (will be very useful to ObjC-related actions, since ObjC declarations are always file-scoped).
      
      llvm-svn: 42817
      c62adb6d
  11. Oct 09, 2007
  12. Oct 08, 2007
  13. Oct 05, 2007
Loading