- Feb 19, 2013
-
-
Bill Wendling authored
llvm-svn: 175476
-
Enrico Granata authored
llvm-svn: 175475
-
Reed Kotler authored
llvm-svn: 175474
-
Jakub Staszak authored
llvm-svn: 175472
-
Bill Wendling authored
llvm-svn: 175471
-
Bill Wendling authored
llvm-svn: 175470
-
Bill Wendling authored
llvm-svn: 175469
-
rdar://problem/12529957Enrico Granata authored
Synthetic children provider for NSSet llvm-svn: 175468
-
NAKAMURA Takumi authored
llvm-svn: 175467
-
David Blaikie authored
Also removes some redundant DNI comments on function declarations already using the macro. llvm-svn: 175466
-
David Blaikie authored
Also removes some redundant DNI comments on function declarations already using the macro. llvm-svn: 175465
-
NAKAMURA Takumi authored
llvm-svn: 175464
-
Chad Rosier authored
llvm-svn: 175463
-
David Blaikie authored
The TypeLoc hierarchy used the llvm::cast machinery to perform undefined behavior by casting pointers/references to TypeLoc objects to derived types and then using the derived copy constructors (or even returning pointers to derived types that actually point to the original TypeLoc object). Some context is in this thread: http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-December/056804.html Though it's spread over a few months which can be hard to read in the mail archive. llvm-svn: 175462
-
Chad Rosier authored
llvm-svn: 175460
-
Chad Rosier authored
If the memcpy has an odd length with an alignment of 2, this would incorrectly assert on the last 1 byte copy. rdar://13202135 llvm-svn: 175459
-
Benjamin Kramer authored
llvm-svn: 175458
-
Benjamin Kramer authored
llvm-svn: 175457
-
Chad Rosier authored
llvm-svn: 175456
-
Dmitri Gribenko authored
if the nul-terminatedness property is important for clients. Also, don't return the same CXString multiple times. This did not create a correctness issue in practice because the CXString was of an CXS_Unmanaged kind, and destruction was a no-op. llvm-svn: 175455
-
David Blaikie authored
llvm-svn: 175454
-
-
Jakub Staszak authored
Also, GetElementPtrInst::getType() method returns SequentialType now, instead of PointerType. There wasn't any issue yet, so no testcase attached. llvm-svn: 175452
-
Argyrios Kyrtzidis authored
llvm-svn: 175451
-
Fariborz Jahanian authored
a small test case). // rdar://13178483. llvm-svn: 175450
-
Douglas Gregor authored
llvm-svn: 175449
-
- Feb 18, 2013
-
-
Douglas Gregor authored
llvm-svn: 175448
-
Douglas Gregor authored
This commit introduces a set of related changes to ensure that the declaration that shows up in the identifier chain after deserializing declarations with a given identifier is, in fact, the most recent declaration. The primary change involves waiting until after we deserialize and wire up redeclaration chains before updating the identifier chains. There is a minor optimization in here to avoid recursively deserializing names as part of looking to see whether top-level declarations for a given name exist. A related change that became suddenly more urgent is to property record a merged declaration when an entity first declared in the current translation unit is later deserialized from a module (that had not been loaded at the time of the original declaration). Since we key off the canonical declaration (which is parsed, not from an AST file) for emitted redeclarations, we simply record this as a merged declaration during AST writing and let the readers merge them. Re-fixes <rdar://problem/13189985>, presumably for good this time. llvm-svn: 175447
-
Vincent Lejeune authored
llvm-svn: 175446
-
Vincent Lejeune authored
NOTE: This is a candidate for the Mesa stable branch. Reviewed-by: Tom Stellard <thomas.stellard at amd.com> llvm-svn: 175445
-
Daniel Jasper authored
In builder-type calls, it can be very confusing to just indent parameters from the start of the line. Instead, indent 4 from the correct function call. Before: aaaaaaaaaaaaaaaaaaa()->aaaaaa(bbbbb)->aaaaaaaaaaaaaaaaaaa( // break aaaaaaaaaaaaaa); aaaaaaaaaaaaaaaaaaaaaaa *aaaaaaaaa = aaaaaa->aaaaaaaaaaaa()->aaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) ->aaaaaaaaaaaaaaaaa(); After: aaaaaaaaaaaaaaaaaaa()->aaaaaa(bbbbb)->aaaaaaaaaaaaaaaaaaa( // break aaaaaaaaaaaaaa); aaaaaaaaaaaaaaaaaaaaaaa *aaaaaaaaa = aaaaaa->aaaaaaaaaaaa() ->aaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) ->aaaaaaaaaaaaaaaaa(); llvm-svn: 175444 -
Vincent Lejeune authored
Reviewed-by: Tom Stellard <thomas.stellard at amd.com> llvm-svn: 175443
-
Kostya Serebryany authored
[asan] revert r175266 as it breaks code with packed structures. supporting long double will require a more general solution llvm-svn: 175442
-
Daniel Jasper authored
Before: aaaaaaa->aaaaaaa->aaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)->aaaaaaaa(aaaaaaaaaaaaaaa); After: aaaaaaa->aaaaaaa ->aaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) ->aaaaaaaa(aaaaaaaaaaaaaaa); llvm-svn: 175441 -
Daniel Jasper authored
An unwrapped line can get moved around if there is no newline before it and the previous line was formatted. Example: template<typename T> // Cursor is on this line when hitting "format" T *getFETokenInfo() const { return static_cast<T*>(FETokenInfo); } "return .." is the second unwrapped line in this scenario. I does not touch any reformatted region. Thus, the result of formatting is: template <typename T> T *getFETokenInfo() const { return static_cast<T *>(FETokenInfo); } After second format (and arguably desired end-result): template <typename T> T *getFETokenInfo() const { return static_cast<T *>(FETokenInfo); } This fixes: llvm.org/PR15060. llvm-svn: 175440 -
Daniel Jasper authored
This fixes llvm.org/PR15248. Before: Test::Test(int b) : a(b *b) {} for (int i = 0; i < a *a; ++i) {} After: Test::Test(int b) : a(b * b) {} for (int i = 0; i < a * a; ++i) {} llvm-svn: 175439 -
Tim Northover authored
This allows Clang to detect and deal wih __atomic_* operations properly on AArch64. Previously we produced an error when encountering them at high optimisation levels. llvm-svn: 175438
-
Benjamin Kramer authored
Currently we're at 34. Bitset should compile into virtually the same code as uint64_t here. llvm-svn: 175437
-
Daniel Jasper authored
Otherwise, other parameters can be quite hidden. Reformatted unittests/Format/FormatTest.cpp after this. Before: someFunction("Always break between multi-line" " string literals", and, other, parameters); After: someFunction("Always break between multi-line" " string literals", and, other, parameters); llvm-svn: 175436 -
Tim Northover authored
The problem call was removed in the interim. Apologies. llvm-svn: 175435
-