- Aug 03, 2011
-
-
John McCall authored
function, be sure to drop parameter attributes when dropping their associated arguments. Patch by Aaron Landwehr! llvm-svn: 136753
-
Rafael Espindola authored
Patch by Jim (Ningjie) Chen. llvm-svn: 136734
-
- Aug 02, 2011
-
-
Rafael Espindola authored
llvm-svn: 136728
-
Eli Friedman authored
llvm-svn: 136703
-
rdar://problem/7662569Bob Wilson authored
This reverts commit 67d097e1232b7d66f58989c16a45b8a11721f76e. We found a miscompile with ARM byval, which is still being investigated. In the meantime, this works around the problem by disabling ARM byval. Conflicts: lib/CodeGen/TargetInfo.cpp llvm-svn: 136662
-
- Aug 01, 2011
-
-
Akira Hatanaka authored
without bailing out when va_arg is an aggregate expression. However, alignment checking needs to be added in isSafeToEliminateVarargsCast in InstCombineCalls.cpp in order to produce correct mips code (see link below). http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-July/042047.html llvm-svn: 136647
-
Akira Hatanaka authored
llvm-svn: 136630
-
David Chisnall authored
llvm-svn: 136628
-
- Jul 29, 2011
-
-
Jay Foad authored
llvm-svn: 136461
-
Peter Collingbourne authored
instruction is tied to an output operand which is a pointer, and the input operand is narrower than the output operand. llvm-svn: 136438
-
- Jul 28, 2011
-
-
John McCall authored
__block variables where the act of initialization/assignment itself causes the __block variable to be copied to the heap because the variable is of block type and is being assigned a block literal which captures the variable. rdar://problem/9814099 llvm-svn: 136337
-
- Jul 27, 2011
-
-
John McCall authored
supposed to be a full-expression; make it so. In ARC, make sure we retain the lock for the entire protected block. llvm-svn: 136271
-
Peter Collingbourne authored
llvm-svn: 136254
-
Eli Friedman authored
Make CodeGen for array delete involving incomplete class work without crashing. Should fix regression on g++.dg/init/delete1.C. llvm-svn: 136241
-
Douglas Gregor authored
llvm-svn: 136210
-
John McCall authored
for-in statements; specifically, make sure to close over any temporaries or cleanups it might require. In ARC, this has implications for the lifetime of the collection, so emit it with a retain and release it upon exit from the loop. rdar://problem/9817306 llvm-svn: 136204
-
Douglas Gregor authored
destructors of abstract classes. It's undefined behavior to actually call the destructor (e.g., via delete), but the presence of code that calls this destructor doesn't make the program ill-formed. Fixes <rdar://problem/9819242>. llvm-svn: 136180
-
- Jul 25, 2011
-
-
Chandler Carruth authored
SourceManager and FullSourceLoc. llvm-svn: 135969
-
Chandler Carruth authored
FullSourceLoc::getInstantiationLoc to ...::getExpansionLoc. This is part of the API and documentation update from 'instantiation' as the term for macros to 'expansion'. llvm-svn: 135914
-
Frits van Bommel authored
llvm-svn: 135910
-
- Jul 23, 2011
-
-
Chris Lattner authored
to avoid extraneous \n's. llvm-svn: 135862
-
Chris Lattner authored
llvm-svn: 135855
-
Chris Lattner authored
them into the clang namespace. llvm-svn: 135852
-
Chris Lattner authored
patch by Jon Mulder! llvm-svn: 135851
-
- Jul 22, 2011
-
-
John McCall authored
Introduce and document a new objc_returns_inner_pointer attribute, and consume it by performing a retain+autorelease on message receivers when they're not immediately loaded from an object with precise lifetime. llvm-svn: 135764
-
Jay Foad authored
ArrayRef. llvm-svn: 135761
-
Chris Lattner authored
Many thanks to Eli for reducing this great testcase. llvm-svn: 135752
-
John McCall authored
their loaded values, although it still worth doing this for __weak properties to get the autoreleased-return-value optimization. llvm-svn: 135747
-
Jordy Rose authored
This was previously not-const only because it has to lazily construct a chain of ivars the first time it is called (and after the chain is invalidated). In practice, all the clients were just const_casting their const Decls; all those now-unnecessary const_casts have been removed. llvm-svn: 135741
-
- Jul 21, 2011
-
-
Jay Foad authored
ConstantExpr::getInBoundsGetElementPtr to use ArrayRef. llvm-svn: 135673
-
- Jul 20, 2011
-
-
Benjamin Kramer authored
llvm-svn: 135585
-
Chris Lattner authored
llvm-svn: 135577
-
Chris Lattner authored
some common llvm types: stringref and smallvector. This cleans up the codebase quite a bit. llvm-svn: 135576
-
rdar://9780211Chris Lattner authored
This is something of a hack, the problem is as follows: 1. we instantiate both copied of RetainPtr with the two different argument types (an id and protocol-qualified id). 2. We refer to the ctor of one of the instantiations when introducing global "x", this causes us to emit an llvm::Function for a prototype whose "this" has type "RetainPtr<id<bork> >*". 3. We refer to the ctor of the other instantiation when introducing global "y", however, because it *mangles to the same name as the other ctor* we just use a bitcasted version of the llvm::Function we previously emitted. 4. We emit deferred declarations, causing us to emit the body of the ctor, however the body we emit is for RetainPtr<id>, which expects its 'this' to have an IR type of "RetainPtr<id>*". Because of the mangling collision, we don't have this case, and explode. This is really some sort of weird AST invariant violation or something, but hey a bitcast makes the pain go away. llvm-svn: 135572
-
Chris Lattner authored
It doesn't matter in practice, but it is good to be tidy. llvm-svn: 135571
-
Chris Lattner authored
and ConvertTypeForMem are the same for pointers, it is best to just use ConvertType. Thanks Eli! llvm-svn: 135567
-
Chris Lattner authored
decaying an array of incomplete type (which has type [0 x i8]*) to a normal pointer (which has incompletetype*). llvm-svn: 135565
-
- Jul 19, 2011
-
-
Evan Cheng authored
llvm-svn: 135469
-
Devang Patel authored
llvm-svn: 135456
-
Devang Patel authored
llvm-svn: 135437
-