- May 01, 2012
-
-
Douglas Gregor authored
llvm-svn: 155878
-
Douglas Gregor authored
llvm-svn: 155877
-
Douglas Gregor authored
diagnostic, from Eitan Adler! llvm-svn: 155876
-
Douglas Gregor authored
llvm-svn: 155875
-
Douglas Gregor authored
llvm-svn: 155874
-
Jim Ingham authored
Use a cache of the results of "GetFileAddress" from a symbol in the Comparator we are using to sort the various lookup indices by symbol address. When we switched to weak pointers, this lookup got slightly slower. Not enough to matter for most uses, but in the sort algorithm it does matter. llvm-svn: 155873
-
Douglas Gregor authored
Dmitri Gribenko! llvm-svn: 155872
-
Kaelyn Uhrain authored
llvm-svn: 155871
-
Kaelyn Uhrain authored
llvm-svn: 155870
-
David Blaikie authored
Similar to r155808 - this mistake has been made in a few iterators. Based on Chandler Carruth's feedback to r155808 I added an implicit conversion to Decl* to ease adoption/usage. Useful for the pointer comparison, but not the dyn_cast (due to template argument deduction causing the conversion not to be used) - there for future convenience, though. This idiom (op T* for iterators) seems to be fairly idiomatic within the LLVM codebase & I'll likely add it as I fix up the other iterators here. llvm-svn: 155869
-
John McCall authored
test for an invalid declaration at every single place in the constant evaluator that's about to request a struct layout. llvm-svn: 155868
-
Lang Hames authored
<rdar://problem/11291436>. This is a second attempt at a fix for this, the first was r155468. Thanks to Chandler, Bob and others for the feedback that helped me improve this. llvm-svn: 155866
-
Ted Kremenek authored
malloc size checker: Ignore const'ness of pointer types when determining of a sizeof() type is compatible with a pointed type. Fixes <rdar://problem/11292586>. llvm-svn: 155864
-
Tobias Grosser authored
Suggested by: Sebastian Pop llvm-svn: 155863
-
Michael J. Spencer authored
llvm-svn: 155861
-
Douglas Gregor authored
llvm-svn: 155860
-
Jakub Staszak authored
llvm-svn: 155859
-
Douglas Gregor authored
clang_getCursorLexicalParent should return a translation unit cursor for declarations at the global scope, from Evan P. Fixes PR9083. llvm-svn: 155858
-
Richard Smith authored
being used in an exception specification in a way which isn't otherwise ill-formed in C++98: this warning also incorrectly triggered on uses of 'this' inside thread-safety attributes, and the mechanism required to tell these cases apart is more complex than can be justified by the (minimal) value of this part of -Wc++98-compat. llvm-svn: 155857
-
Argyrios Kyrtzidis authored
of a local variable, make sure we don't infinitely recurse when the reference binds to itself. e.g: int* func() { int& i = i; // assign non-exist variable to a reference which has same name. return &i; // return pointer } rdar://11345441 llvm-svn: 155856
-
Fariborz Jahanian authored
defined inside the objc class belong to class's decl. scope. This is to conform to objective-c rules. // rdar://11351299 llvm-svn: 155855
-
Manman Ren authored
This patch will optimize -(x != 0) on X86 FROM cmpl $0x01,%edi sbbl %eax,%eax notl %eax TO negl %edi sbbl %eax %eax llvm-svn: 155853
-
Jim Grosbach authored
Replace some assert() calls w/ actual diagnostics. In a perfect world, there'd be range checks on these values long before things ever reached this code. For now, though, issuing a better-late-than-never diagnostic is still a big improvement over assert(). rdar://11347287 llvm-svn: 155851
-
Argyrios Kyrtzidis authored
rdar://11289247 llvm-svn: 155849
-
Argyrios Kyrtzidis authored
calculating it recursively. boost::assign::tuple_list_of uses the trick of chaining call operator expressions in order to declare a "list of tuples", e.g: std::vector<tuple> v = boost::assign::tuple_list_of(1, "foo")(2, "bar")(3, "qqq"); Due to CXXOperatorCallExpr calculating its source range recursively we would get significant slowdowns with a large number of chained call operator expressions and the potential for stack overflow. rdar://11350116 llvm-svn: 155848
-
- Apr 30, 2012
-
-
Michael J. Spencer authored
llvm-svn: 155847
-
Michael J. Spencer authored
llvm-svn: 155846
-
Jakob Stoklund Olesen authored
This was exposed by SingleSource/UnitTests/Vector/constpool.c. The computed size of a basic block isn't always a multiple of its known alignment, and that can introduce extra alignment padding after the block. <rdar://problem/11347135> llvm-svn: 155845
-
Sebastian Pop authored
Thanks to "Gabor Greif" <ggreif@gmail.com> for reporting this problem. The configure flag should be --with-default-sysroot as documented, and not --with-sysroot. The reason we don't want to define --with-sysroot is that GCC has a configure flag by that name and it has a different semantics. llvm-svn: 155844
-
Fariborz Jahanian authored
llvm-svn: 155843
-
Ted Kremenek authored
llvm-svn: 155842
-
Ted Kremenek authored
Reduce malloc() traffic of clang_getOverridenCursors() by using a pool of SmallVector<CXCursor> objects under the covers. Fixes <rdar://problem/11289160>. llvm-svn: 155841
-
Manman Ren authored
llvm-svn: 155840
-
David Blaikie authored
Reviewed by Doug Gregor. llvm-svn: 155839
-
David Blaikie authored
Apparently we weren't checking default arguments when they were instantiated. This adds the check, fixes the lack of instantiation caching (which seems like it was mostly implemented but just missed the last step), and avoids implementing non-dependent default args (for non-dependent parameter types) as uninstantiated default arguments (so that we don't warn once for every instantiation when it's not instantiation dependent). Reviewed by Richard Smith. llvm-svn: 155838
-
Douglas Gregor authored
when we're in an Objective-C container context. Fixes <rdar://problem/11286701>. llvm-svn: 155836
-
Richard Trieu authored
in the loop conditional do not change. llvm-svn: 155835
-
Chad Rosier authored
llvm-svn: 155832
-
Fariborz Jahanian authored
local rewriting functions. llvm-svn: 155826
-
Derek Schuff authored
On x86-32, structure return via sret lets the callee pop the hidden pointer argument off the stack, which the caller then re-pushes. However if the calling convention is fastcc, then a register is used instead, and the caller should not adjust the stack. This is implemented with a check of IsTailCallConvention X86TargetLowering::LowerCall but is now checked properly in X86FastISel::DoSelectCall. (this time, actually commit what was reviewed!) llvm-svn: 155825
-