Skip to content
  1. Nov 03, 2007
  2. Nov 02, 2007
  3. Nov 01, 2007
  4. Oct 31, 2007
  5. Oct 30, 2007
  6. Oct 29, 2007
  7. Oct 26, 2007
  8. Oct 19, 2007
  9. Oct 18, 2007
    • Steve Naroff's avatar
      · 1bb21df4
      Steve Naroff authored
      Tweak a recent fix to UsualArithmeticConversions (made by Chris - r43113). The benefit of this tweak is it guarantees the entire routine operates on unqualified types (which I believe is a bit clearer).  
      
      llvm-svn: 43142
      1bb21df4
    • 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
Loading