diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-21 19:53:08 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-21 19:53:08 +0000 |
| commit | 252ba5fb6f2888b990a9d3b4c18f42295436fbd9 (patch) | |
| tree | b8b691ecbdea4122f50d7aba530ecb0c16c3be02 /clang/test/Analysis | |
| parent | d354278b515455dc734a69a8132a02497aaa48d3 (diff) | |
| download | bcm5719-llvm-252ba5fb6f2888b990a9d3b4c18f42295436fbd9.tar.gz bcm5719-llvm-252ba5fb6f2888b990a9d3b4c18f42295436fbd9.zip | |
This patch implements objective-c's 'SEL' type as a built-in
type and fixes a long-standing code gen. crash reported in
at least two PRs and a radar. (radar 7405040 and pr5025).
There are couple of remaining issues that I would like for
Ted. and Doug to look at:
Ted, please look at failure in Analysis/MissingDealloc.m.
I have temporarily added an expected-warning to make the
test pass. This tests has a declaration of 'SEL' type which
may not co-exist with the new changes.
Doug, please look at a FIXME in PCHWriter.cpp/PCHReader.cpp.
I think the changes which I have ifdef'ed out are correct. They
need be considered for in a few Indexer/PCH test cases.
llvm-svn: 89561
Diffstat (limited to 'clang/test/Analysis')
| -rw-r--r-- | clang/test/Analysis/MissingDealloc.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Analysis/MissingDealloc.m b/clang/test/Analysis/MissingDealloc.m index 3942391ee98..502973a1734 100644 --- a/clang/test/Analysis/MissingDealloc.m +++ b/clang/test/Analysis/MissingDealloc.m @@ -39,7 +39,8 @@ typedef struct objc_selector *SEL; @end -@implementation TestSELs // no-warning +// FIXME!! This warning should not come out and is temporarily added so test 'passes'. +@implementation TestSELs // expected-warning {{Objective-C class 'TestSELs' lacks a 'dealloc' instance method}} - (id)init { if( (self = [super init]) ) { a = @selector(a); |

