- Mar 05, 2012
-
-
Daniel Dunbar authored
from the ASTContext. - Doing so requires the compiler to generate null checks against the returned result, but the BumpPtrAllocator never returns null pointers. - The optimizer can usually eliminate such checks, but not always, so this gives us tighter codegen in some places. - It would be really nice if we could just use __builtin_unreachable or something to tell the optimizer that the allocator never returns null, but LLVM isn't currently that smart. llvm-svn: 152060
-
Anna Zaks authored
llvm-svn: 152059
-
Daniel Dunbar authored
llvm-svn: 152054
-
Sebastian Redl authored
llvm-svn: 152048
-
Fariborz Jahanian authored
return types that return non-void values. // rdar://10735698 llvm-svn: 152047
-
Jim Grosbach authored
llvm-svn: 152046
-
Anna Zaks authored
calls with self as a parameter. llvm-svn: 152039
-
Anna Zaks authored
calling an ObjC method ending with 'NoCopy'. llvm-svn: 152037
-
Benjamin Kramer authored
llvm-svn: 152033
-
Peter Collingbourne authored
ASTContext::getUnaryTransformType. This can happen if, for example, an enumeration's underlying type is a typedef. llvm-svn: 152031
-
Nico Weber authored
Patch from Sean Silva <silvas@purdue.edu>! llvm-svn: 152030
-
Benjamin Kramer authored
llvm-svn: 152029
-
Rafael Espindola authored
In the included testcase, soma thinks that we already have a definition after we see the out of line decl. Codegen puts it in a deferred list, to be output if a use is seen. This would break when we saw an explicit template instantiation definition, since codegen would not be notified. This patch adds a method to the consumer interface so that soma can notify codegen that this decl is now required. llvm-svn: 152024
-
James Molloy authored
Fix a bug in the mangler where in 'namespace std { extern "C" {X;} }', X would not be seen to be in ::std::. Migrate two other places where the same logic is used to use the helper function that already exists. llvm-svn: 152022
-
Argyrios Kyrtzidis authored
-Make sure we don't change to '__weak' a __block variable used as output. -Make sure we don't apply __weak twice. Fixes rdar://10520757&10521362 llvm-svn: 152020
-
Argyrios Kyrtzidis authored
Introduce PreprocessingRecord::rangeIntersectsConditionalDirective() which returns true if a given range intersects with a conditional directive block. llvm-svn: 152018
-
Argyrios Kyrtzidis authored
-Add location parameter for the directives callbacks -Skip callbacks if the directive is inside a skipped range. -Make sure the directive callbacks are invoked in source order. llvm-svn: 152017
-
Richard Smith authored
llvm-svn: 152013
-
Richard Smith authored
kinds as the underlying string literals, and we silently drop the ud-suffix; those issues will be fixed by subsequent patches. llvm-svn: 152012
-
Gregory Szorc authored
llvm-svn: 152011
-
- Mar 04, 2012
-
-
Erik Verbruggen authored
Remove a recursive visitation in ExprEngine that is no longer needed because the CFG is fully linearized. llvm-svn: 152007
-
Chandler Carruth authored
llvm-svn: 152005
-
Richard Smith authored
llvm-svn: 151997
-
Chris Lattner authored
we're making. We only ignore implicit casts. Add a testcase showing that we get the right behavior with explicit casts. llvm-svn: 151994
-
Chris Lattner authored
reported by Richard Smith. llvm-svn: 151993
-
Richard Smith authored
llvm-svn: 151992
-
- Mar 03, 2012
-
-
Richard Smith authored
resolution of core issue 1454. llvm-svn: 151991
-
Benjamin Kramer authored
llvm-svn: 151989
-
Jean-Daniel Dupas authored
llvm-svn: 151978
-
Eli Friedman authored
Avoid an unnecessary recursive loop between type canonicalization and NNS canonicalization which would (rarely) lead to memory corruption. While I'm here, simplify. Fixes PR12166. Not committing a testcase because it's impossible to reduce it. llvm-svn: 151967
-
Ted Kremenek authored
[analyzer] do not warn about returning stack-allocated memory when it comes from an ancestor stack frame. llvm-svn: 151964
-
Richard Smith authored
trivially-copyable. 50KiB reduction in clang binary size. llvm-svn: 151963
-
Daniel Dunbar authored
- This is a more reliable default, as it behaves better on failure and also ensures that we create *new* files (instead of reusing existing inodes). This is useful for other applications (like lldb) which want to cache inode's to know when a file has been rewritten. llvm-svn: 151961
-
Daniel Dunbar authored
Frontend: Don't automatically create missing directories when using temporary files with createOutputFile() - This would otherwise happen as a side effect of llvm::sys::fs::unique_file creating parent directories. llvm-svn: 151960
-
DeLesley Hutchins authored
llvm-svn: 151956
-
Richard Smith authored
scalar emission of DeclRefExprs to const bools: emit scalar bools as i1, not as i8. In addition to the extra unit testing, this has successfully bootstrapped. llvm-svn: 151955
-
Anna Zaks authored
llvm-svn: 151952
-
Nico Weber authored
llvm-svn: 151951
-
- Mar 02, 2012
-
-
Anna Zaks authored
the corresponding files to avoid confusion. This is a preparation to adding an AST-based call graph to Analysis. The existing call graph works with indexer entries. We might be able to refactor it to use the AST based graph in the future. (Minimal testing here as the only example that uses the API has been completely broken, does not compile.) llvm-svn: 151950
-
Aaron Ballman authored
llvm-svn: 151949
-