- Jul 24, 2007
-
-
Steve Naroff authored
Fix Sema::ParseCallExpr()...it wasn't doing the default array/function promotions on it's argument types. This resulted in the following errors when compiling promote_types_in_proto.c test... [dylan:~/llvm/tools/clang] admin% ../../Debug/bin/clang test/Parser/promote_types_in_proto.c test/Parser/promote_types_in_proto.c:7:24: error: incompatible types passing 'char *[]' to function expecting 'char *const []' arrayPromotion(argv); ~~~~~~~~~~~~~~ ^~~~ test/Parser/promote_types_in_proto.c:8:27: error: incompatible types passing 'void (char *const [])' to function expecting 'void (char *const [])' functionPromotion(arrayPromotion); ~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~ 2 diagnostics generated. When fixing this, noticed that both ParseCallExpr() and ParseReturnStmt() were prematurely comparing types for equivalence. This is incorrect (since the expr. promotions haven't been done yet). To fix this, I moved the check "down" to Sema::CheckAssignmentConstraints(). I also converted Type::isArrayType() to the modern API (since I needed it). Still more Type predicates to convert. llvm-svn: 40475
-
Owen Anderson authored
llvm-svn: 40474
-
Anton Korobeynikov authored
Pretty hackish, but code itself is dirty mess, so we won't make anything worse. :) llvm-svn: 40472
-
Chris Lattner authored
llvm-svn: 40471
-
Chris Lattner authored
llvm-svn: 40470
-
Owen Anderson authored
load elimination code from RedundantLoadElimination. llvm-svn: 40469
-
Chris Lattner authored
llvm-svn: 40466
-
Chris Lattner authored
This implements test/Sema/stmt_exprs.c llvm-svn: 40465
-
Reid Spencer authored
llvm-svn: 40464
-
Chris Lattner authored
llvm-svn: 40462
-
Chris Lattner authored
This speeds up -E on xalancbmk by 2.4% llvm-svn: 40461
-
Chris Lattner authored
llvm-svn: 40460
-
Chris Lattner authored
bottleneck for -E computation, because every token that starts a line needs to determine *which* line it is on (so -E mode can insert the appropriate vertical whitespace). This optimization improves this common case where it is striding through the line # table. This speeds up -E on xalancbmk by 3.2% llvm-svn: 40459
-
Devang Patel authored
llvm-svn: 40458
-
Owen Anderson authored
llvm-svn: 40457
-
Owen Anderson authored
llvm-svn: 40456
-
Reid Spencer authored
2. Fold an if statement into the Assert1 macro call. llvm-svn: 40455
-
Chris Lattner authored
by Neil Booth. This fixes Preprocessor/output_paste_avoid.c llvm-svn: 40454
-
Reid Spencer authored
to use sret or inreg on the function. It is equally illegal to use noreturn or nounwind on a parameter; they only go with the function. This patch enforces these rules. llvm-svn: 40453
-
Chris Lattner authored
Patch by Neil Booth! llvm-svn: 40452
-
Chandler Carruth authored
llvm-svn: 40451
-
Chris Lattner authored
llvm-svn: 40450
-
Owen Anderson authored
llvm-svn: 40449
-
Owen Anderson authored
llvm-svn: 40448
-
Owen Anderson authored
llvm-svn: 40447
-
- Jul 23, 2007
-
-
Owen Anderson authored
llvm-svn: 40446
-
Owen Anderson authored
llvm-svn: 40445
-
Owen Anderson authored
llvm-svn: 40444
-
Dan Gohman authored
llvm-svn: 40443
-
Dan Gohman authored
llvm-svn: 40441
-
Owen Anderson authored
llvm-svn: 40440
-
Chris Lattner authored
undefs. llvm-svn: 40439
-
Chris Lattner authored
this fixes test/Sema/switch.c. llvm-svn: 40438
-
Duncan Sands authored
that cannot be suppressed and cannot be redirected: they are dumped in the current working directory. When running the testsuite this means that these files do not end up in the Output directory. The best solution I could find is to change directory into Output before running tests. llvm-svn: 40437
-
Duncan Sands authored
RUN line in Support. Give up on sending output to /dev/null - this cannot always be arranged. llvm-svn: 40436
-
Reid Spencer authored
Fix -include line so it doesn't reference /dev/null llvm-svn: 40429
-
Reid Spencer authored
produces warning from make about bad timestamp on /dev/null Patch by Holger Schurig. llvm-svn: 40426
-
Chris Lattner authored
llvm-svn: 40424
-
Chris Lattner authored
This speeds up -E on 447.dealII by 5.8% llvm-svn: 40423
-
Chris Lattner authored
trivial to handle and very very common. This speeds up -E on 447.dealII by 2.5% llvm-svn: 40422
-