- Feb 28, 2011
-
-
Peter Collingbourne authored
The previous name was inaccurate as this token in fact appears at the end of every preprocessing directive, not just macro definitions. No functionality change, except for a diagnostic tweak. llvm-svn: 126631
-
Ken Dyck authored
they are known to be exact multiples of the width of the char type. Add a test case to CodeGen/union.c that would have caught the problem with the previous attempt. No change in functionality intended. llvm-svn: 126628
-
Argyrios Kyrtzidis authored
llvm-svn: 126626
-
Argyrios Kyrtzidis authored
llvm-svn: 126623
-
Argyrios Kyrtzidis authored
llvm-svn: 126619
-
Argyrios Kyrtzidis authored
llvm-svn: 126617
-
Argyrios Kyrtzidis authored
llvm-svn: 126616
-
Argyrios Kyrtzidis authored
llvm-svn: 126615
-
Argyrios Kyrtzidis authored
llvm-svn: 126614
-
Argyrios Kyrtzidis authored
llvm-svn: 126613
-
Argyrios Kyrtzidis authored
-Now it gets enabled with '-analyzer-checker=DeadStores'. -The driver passes the above flag by default. llvm-svn: 126612
-
Argyrios Kyrtzidis authored
llvm-svn: 126611
-
Argyrios Kyrtzidis authored
llvm-svn: 126610
-
Argyrios Kyrtzidis authored
Turns -analyzer-check-buffer-overflows into -analyzer-checker=core.experimental.Overflow llvm-svn: 126609
-
Argyrios Kyrtzidis authored
llvm-svn: 126608
-
Argyrios Kyrtzidis authored
llvm-svn: 126607
-
Argyrios Kyrtzidis authored
llvm-svn: 126606
-
Chris Lattner authored
llvm-svn: 126603
-
Chris Lattner authored
compound statements and break statements. This implements enough to handle PR9322 and rdar://6970405. llvm-svn: 126602
-
Anders Carlsson authored
llvm-svn: 126599
-
Chris Lattner authored
live case of a switch statement when switching on a constant. This is terribly limited, but enough to handle the trivial example included. Before we would emit: define void @test1(i32 %i) nounwind { entry: %i.addr = alloca i32, align 4 store i32 %i, i32* %i.addr, align 4 switch i32 1, label %sw.epilog [ i32 1, label %sw.bb ] sw.bb: ; preds = %entry %tmp = load i32* %i.addr, align 4 %inc = add nsw i32 %tmp, 1 store i32 %inc, i32* %i.addr, align 4 br label %sw.epilog sw.epilog: ; preds = %sw.bb, %entry switch i32 0, label %sw.epilog3 [ i32 1, label %sw.bb1 ] sw.bb1: ; preds = %sw.epilog %tmp2 = load i32* %i.addr, align 4 %add = add nsw i32 %tmp2, 2 store i32 %add, i32* %i.addr, align 4 br label %sw.epilog3 sw.epilog3: ; preds = %sw.bb1, %sw.epilog ret void } now we emit: define void @test1(i32 %i) nounwind { entry: %i.addr = alloca i32, align 4 store i32 %i, i32* %i.addr, align 4 %tmp = load i32* %i.addr, align 4 %inc = add nsw i32 %tmp, 1 store i32 %inc, i32* %i.addr, align 4 ret void } This improves -O0 compile time (less IR to generate and shove through the code generator) and the clever linux kernel people found a way to fail to build if we don't do this optimization. This step isn't enough to handle the kernel case though. llvm-svn: 126597
-
- Feb 27, 2011
-
-
Frits van Bommel authored
Fix this test case for CMake builds after r126502, which sneakily changed the actual executable name to clang-<version>. llvm-svn: 126560
-
- Feb 26, 2011
-
-
John McCall authored
send before making the call. Fixes rdar://problem/7854674 llvm-svn: 126543
-
John McCall authored
llvm-svn: 126541
-
John McCall authored
loading references as part of that. Use 'char' TBAA when accessing (immediate!) fields of a may_alias struct; fixes PR9307. llvm-svn: 126540
-
Fariborz Jahanian authored
// rdar://9056351 llvm-svn: 126536
-
Fariborz Jahanian authored
block. // rdar://9055596 llvm-svn: 126535
-
- Feb 25, 2011
-
-
Ted Kremenek authored
llvm-svn: 126523
-
Fariborz Jahanian authored
where ever such attribute causes an error diagnostic. llvm-svn: 126509
-
Douglas Gregor authored
DependentScopeDeclRefExpr. Plus, give NestedNameSpecifierLoc == and != operators, since we're going to need 'em elsewhere. llvm-svn: 126508
-
Matt Beaumont-Gay authored
llvm-svn: 126501
-
Fariborz Jahanian authored
// rdar://9046492 llvm-svn: 126499
-
Douglas Gregor authored
pseudo-destructor expressions. Also, clean up some template-instantiation and type-checking issues with pseudo-destructors. llvm-svn: 126498
-
Fariborz Jahanian authored
llvm-svn: 126497
-
Douglas Gregor authored
aliases. llvm-svn: 126496
-
Douglas Gregor authored
llvm-svn: 126489
-
Douglas Gregor authored
llvm-svn: 126487
-
Douglas Gregor authored
instantiation of using declarations (all three forms). llvm-svn: 126485
-
Peter Collingbourne authored
Anton Lokhmotov. llvm-svn: 126482
-
Chandler Carruth authored
declarations as referenced when in fact we're not going to even form a call in the AST. This is significant because we attempt to allow as an extension classes with intentionally private and undefined copy constructors to have temporaries bound to references, and so shouldn't warn about the lack of definition for that copy constructor when the class is internal. Doug, John wasn't really satisfied with the presence of overloading at all. This is a stop-gap and there may be a better solution. If you can give me some hints for how you'd prefer to see this solved, I'll happily switch things over. llvm-svn: 126480
-