Skip to content
  1. Jan 15, 2008
    • Chris Lattner's avatar
      avoid pasting L + "foo" into L"foo". · 15346fae
      Chris Lattner authored
      llvm-svn: 46000
      15346fae
    • Steve Naroff's avatar
      · 7f988889
      Steve Naroff authored
      Rework commit r45976, which was incorrect.
      
      - Add Type::isComplexIntegerType(), Type::getAsComplexIntegerType().
      - Don't inlude complex types with Type::isIntegerType(), which is too general.
      - Use the new predicates in Sema::UsualArithmeticConversions() to recognize/convert the types.
      
      llvm-svn: 45992
      7f988889
    • Steve Naroff's avatar
      · d8c7d484
      Steve Naroff authored
      Make sure Sema::GetTypeForDeclarator() deals with abstract declarators when diagnosing incorrect code.
      
      Bug submitted by Eli.
      
      llvm-svn: 45989
      d8c7d484
  2. Jan 14, 2008
    • Steve Naroff's avatar
      Teach Type::isIntegerType() about GCC's __complex__ integer extensions... · c28f46c6
      Steve Naroff authored
      Bug submitted by Eli.
      
      llvm-svn: 45976
      c28f46c6
    • Steve Naroff's avatar
      · 012484d6
      Steve Naroff authored
      Fix crasher when redefining functions. Not 100% pleased with this solution, but it is clearly an improvement. Will discuss with Chris later.
      
      llvm-svn: 45975
      012484d6
    • Steve Naroff's avatar
      · d32419de
      Steve Naroff authored
      Record if a compound literal expression is @ file scope. This allows us to implement C99 6.5.2.5p6. This could have been done without modifying the AST (by checking the decl type and passing the info down to isContextExpr), however we concluded this is more desirable.
      
      Bug/patch by Eli Friedman!
      
      llvm-svn: 45966
      d32419de
    • Steve Naroff's avatar
      · 4871fe0b
      Steve Naroff authored
      Revert r45951, Chris says it violates the C99 spec.
      
      llvm-svn: 45961
      4871fe0b
    • Anders Carlsson's avatar
      Add codegen upport for implicit casts to aggregate exprs. · 1ba25ca1
      Anders Carlsson authored
      llvm-svn: 45954
      1ba25ca1
    • Chris Lattner's avatar
      Fix ASTContext::typesAreCompatible when analyzing a function type with · fd65291a
      Chris Lattner authored
      proto and function type without proto.  It would never call 
      'functionTypesAreCompatible' because they have different type classes.
      
      llvm-svn: 45952
      fd65291a
    • Steve Naroff's avatar
      · 09035319
      Steve Naroff authored
      Rewrite Expr::isNullPointerConstant() to deal with multiple levels of explicit casts.
      
      Now, isNullPointerConstant() will return true for the following: "(void*)(double*)0"
      
      llvm-svn: 45951
      09035319
  3. Jan 13, 2008
    • Steve Naroff's avatar
      Change Sema::CheckAddressOfOperation() to respect C99-only addressof rules. · 826e91ae
      Steve Naroff authored
      Remove diagnostics from Sema::CheckIndirectionOperand(). C89/C99 allow dereferencing an incomplete type. clang appears to be emulating some incorrect gcc behavior (see below).
      
      void
      foo (void)
      {
       struct b;
       struct b* x = 0;
       struct b* y = &*x; // gcc produces an error ("dereferencing pointer to incomplete type")
      }
      
      With this patch, the above is now allowed.
      
      Bug/Patch by Eli Friedman!
      
      llvm-svn: 45933
      826e91ae
  4. Jan 12, 2008
  5. Jan 10, 2008
  6. Jan 09, 2008
  7. Jan 08, 2008
  8. Jan 07, 2008
  9. Jan 04, 2008
  10. Jan 03, 2008
Loading