- Aug 27, 2007
-
-
Steve Naroff authored
Changed Sema::UsualArithmeticConversions to use the new API. This fixes the following case... _Complex double X; double y; void foo() { X = X + y; } [dylan:~/llvm/tools/clang] admin% ../../Debug/bin/clang complex.c -parse-ast-dump Read top-level variable decl: 'X' Read top-level variable decl: 'y' void foo() (CompoundStmt 0x2605cc0 (BinaryOperator 0x2605ca0 '_Complex double' '=' (DeclRefExpr 0x2605c10 '_Complex double' Decl='X' 0x2605ab0) (BinaryOperator 0x2605c80 '_Complex double' '+' (DeclRefExpr 0x2605c30 '_Complex double' Decl='X' 0x2605ab0) (ImplicitCastExpr 0x2605c70 '_Complex double' (DeclRefExpr 0x2605c50 'double' Decl='y' 0x2605ae0))))) llvm-svn: 41483
-
Dan Gohman authored
llvm-svn: 41482
-
Rafael Espindola authored
Coping 100MB array (after a warmup) shows that glibc 2.6.1 implementation on x86-64 (core 2) is 30% faster (from 0.270917s to 0.188079s) llvm-svn: 41479
-
Chris Lattner authored
llvm-svn: 41478
-
Chris Lattner authored
llvm-svn: 41477
-
Steve Naroff authored
Add Type::getAsBuiltinType() and Type::builtinTypesAreCompatible(). Modified Type::typesAreCompatible() to use the above. This fixes the following bug submitted by Keith Bauer (thanks!). int equal(char *a, const char *b) { return a == b; } Also tweaked Sema::CheckCompareOperands() to ignore the qualifiers when comparing two pointer types (though it doesn't relate directly to this bug). llvm-svn: 41476
-
Steve Naroff authored
Tweak a comment and assert. llvm-svn: 41475
-
Steve Naroff authored
Replaced ASTContext::maxComplexType() with ASTContext::getFloatingTypeOfSizeWithinDomain(). Changed Sema::UsualArithmeticConversions to correctly implement complex/float conversions, using maxFloatingType() with getFloatingTypeOfSizeWithinDomain(). llvm-svn: 41474
-
Chris Lattner authored
llvm-svn: 41473
-
Chris Lattner authored
llvm-svn: 41472
-
Chris Lattner authored
llvm-svn: 41471
-
Chris Lattner authored
llvm-svn: 41470
-
Chris Lattner authored
llvm-svn: 41469
-
Chris Lattner authored
llvm-svn: 41468
-
Chris Lattner authored
llvm-svn: 41467
-
Chris Lattner authored
llvm-svn: 41466
-
Chris Lattner authored
llvm-svn: 41465
-
Chris Lattner authored
llvm-svn: 41464
-
Chris Lattner authored
llvm-svn: 41463
-
Chris Lattner authored
instead of VisitBinaryOperator. llvm-svn: 41462
-
- Aug 26, 2007
-
-
Anton Korobeynikov authored
Don't promote volatile loads/stores. This is needed (for example) to handle setjmp/longjmp properly. This fixes PR1520. llvm-svn: 41461
-
Chris Lattner authored
llvm-svn: 41460
-
Chris Lattner authored
the operand is of type CompoundAssignOperator, not just BinaryOperator. llvm-svn: 41459
-
Chris Lattner authored
llvm-svn: 41458
-
Chris Lattner authored
llvm-svn: 41457
-
Owen Anderson authored
llvm-svn: 41456
-
Chris Lattner authored
llvm-svn: 41455
-
Chris Lattner authored
llvm-svn: 41454
-
Chris Lattner authored
t.c:3:9: warning: invalid conversion '%B' printf("%B\a\n", p); ~~~~~~ ^ Don't beep the console or print the newline. llvm-svn: 41453
-
Chris Lattner authored
llvm-svn: 41452
-
Chris Lattner authored
llvm-svn: 41451
-
Chris Lattner authored
llvm-svn: 41450
-
Chris Lattner authored
llvm-svn: 41449
-
Chris Lattner authored
llvm-svn: 41448
-
Chris Lattner authored
llvm-svn: 41447
-
Chris Lattner authored
llvm-svn: 41446
-
Chris Lattner authored
llvm-svn: 41445
-
Chris Lattner authored
llvm-svn: 41444
-
Steve Naroff authored
Fix bogus warnings (noticed by Chris) with array-constraints.c. Remove bogus type conversions in Sema::GetTypeForDeclarator(). This commit only deals with the array types (DeclaratorCheck::Array), though the rest of this routine should be reviewed. Given the complexity of C declarators, I don't want to change the entire routine now (will discuss with Chris tomorrow). llvm-svn: 41443
-
Chris Lattner authored
llvm-svn: 41442
-