- Mar 01, 2012
-
-
Eli Friedman authored
Implement "optimization" for lambda-to-block conversion which inlines the generated block literal for lambdas which are immediately converted to block pointer type. This simplifies the AST, avoids an unnecessary copy of the lambda and makes it much easier to avoid copying the result onto the heap. Note that this transformation has a substantial semantic effect outside of ARC: it gives the converted lambda lifetime semantics similar to a block literal. With ARC, the effect is much less obvious because the lifetime of blocks is already managed. llvm-svn: 151797
-
Richard Smith authored
improve the diagnostics for some attempts to use initializer lists in expressions. llvm-svn: 151794
-
Richard Smith authored
than an attribute name. Patch by Michel Morin! llvm-svn: 151791
-
Ted Kremenek authored
Fix regression from llvm-gcc where we should NOT emit a warning about __attribute__((NSObject)) on a property declaration. This is needed to have retain properties for non-object pointers. Fixes <rdar://problem/10930507>. llvm-svn: 151786
-
Anna Zaks authored
will be done by the general cleanup later on. A Patch by Ted. llvm-svn: 151784
-
Eli Friedman authored
llvm-svn: 151783
-
Nico Weber authored
llvm-svn: 151776
-
Ted Kremenek authored
llvm-svn: 151775
-
Ted Kremenek authored
llvm-svn: 151774
-
- Feb 29, 2012
-
-
Nico Weber authored
Fixes PR10606. I'm not sure if this is the best way to go about it, but I locally enabled this code path without the msext conditional, and all tests pass, except for test/Preprocessor/cxx_oper_keyword.cpp which explicitly checks that operator keywords can't be redefined. I also parsed chromium/win with a clang with and without this patch. It introduced no new errors, but removes 43 existing errors. llvm-svn: 151768
-
-
Fariborz Jahanian authored
have matching user defined setter/getter and a warning is issued. In this case, a fixit note is displayed. // rdar://10267155 llvm-svn: 151766
-
Eli Friedman authored
llvm-svn: 151754
-
Daniel Dunbar authored
ctor. llvm-svn: 151752
-
Chad Rosier authored
correct radar number to the test case for tracking purposes. rdar://10551066 llvm-svn: 151746
-
Chad Rosier authored
by the BAA pass, which uses the default TargetLibraryInfo constructor. Unfortunately, the default TargetLibraryInfo constructor assumes all library calls are available and thus ignores -fno-builtin. rdar://10947759 llvm-svn: 151745
-
Jason W Kim authored
llvm-svn: 151739
-
Jason W Kim authored
llvm-svn: 151738
-
Anna Zaks authored
funopen, setvbuf. Teach the checker and the engine about these APIs to resolve malloc false positives. As I am adding more of these APIs, it is clear that all this should be factored out into a separate callback (for example, region escapes). Malloc, KeyChainAPI and RetainRelease checkers could all use it. llvm-svn: 151737
-
Daniel Dunbar authored
info.", which broke some -O0 -g tests. llvm-svn: 151730
-
David Chisnall authored
llvm-svn: 151726
-
Sebastian Redl authored
Tentatively fix PR12117. The test case from the bug now passes, and all existing tests still pass, but there may still be corner cases. llvm-svn: 151716
-
James Molloy authored
The bug that was caught by Apple's internal buildbots was valid and also showed another bug in my implementation. These are now fixed, with regression tests added to catch them both (not Darwin-specific). Original log: ==================== Revert r151638 because it causes assertion hit on PCH creation for Cocoa.h Original log: --------------------- Correctly track tags and enum members defined in the prototype of a function, and ensure they are properly scoped. This fixes code such as: enum e {x, y}; int f(enum {y, x} n) { return 0; } This finally fixes PR5464 and PR5477. --------------------- I also reverted r151641 which was enhancement on top of r151638. ==================== llvm-svn: 151712
-
Erik Verbruggen authored
because the CFG is fully linearized. llvm-svn: 151711
-
Ted Kremenek authored
[analyzer] Tweak the UnreachableCode checker to not warning about unreachable default blocks. Patch by Cyril Roelandt! llvm-svn: 151709
-
Eli Friedman authored
A couple minor bug-fixes for template instantiation for expressions which are sometimes potentially evaluated. llvm-svn: 151707
-
Argyrios Kyrtzidis authored
rdar://10459258 llvm-svn: 151706
-
Eric Christopher authored
This currently doesn't handle capturing the 'this' pointer for any enclosing class. Steal the lambda-expressions.cpp testcase and debugify it and try to use more variables to proof it against random changes. Part of rdar://10900684 llvm-svn: 151702
-
Eric Christopher authored
llvm-svn: 151701
-
Eric Christopher authored
llvm-svn: 151700
-
Eli Friedman authored
llvm-svn: 151699
-
Daniel Dunbar authored
of the SmallPtrSet way up to avoid commonly reallocating the buffer size. - I didn't see a good argument against it, so I bumped the limit to cover the max size we see during parsing Cocoa.h. llvm-svn: 151698
-
Daniel Dunbar authored
- This reduces our total # of allocations building a PCH for Cocoa.h by almost a whopping 50%. - A SmallPtrMap would be cleaner, but since we don't have one yet... llvm-svn: 151697
-
NAKAMURA Takumi authored
llvm-svn: 151695
-
NAKAMURA Takumi authored
FIXME: Could we guarantee not to get stack overflow also on mingw? llvm-svn: 151692
-
Daniel Dunbar authored
llvm-svn: 151689
-
Fariborz Jahanian authored
the ivar offset symbol. llvm-svn: 151683
-
Daniel Dunbar authored
llvm-svn: 151682
-
Eli Friedman authored
llvm-svn: 151674
-
Argyrios Kyrtzidis authored
llvm-svn: 151669
-