diff options
-rw-r--r-- | lib/AST/Type.cpp | 1 | ||||
-rw-r--r-- | lib/Sema/Sema.cpp | 2 | ||||
-rw-r--r-- | test/Analysis/MissingDealloc.m | 3 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 7a8d3af2a0..5a2434da3c 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -725,6 +725,7 @@ const char *BuiltinType::getName(const LangOptions &LO) const { case UndeducedAuto: return "auto"; case ObjCId: return "id"; case ObjCClass: return "Class"; + case ObjCSel: return "SEL"; } } diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index 62c2e25f52..11729e0dac 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -300,7 +300,7 @@ void Sema::ActOnTranslationUnitScope(SourceLocation Loc, Scope *S) { // Built-in ObjC types may already be set by PCHReader (hence isNull checks). if (Context.getObjCSelType().isNull()) { // Create the built-in typedef for 'SEL'. - QualType SelT = Context.getObjCObjectPointerType(Context.ObjCBuiltinSelTy); + QualType SelT = Context.getPointerType(Context.ObjCBuiltinSelTy); DeclaratorInfo *SelInfo = Context.getTrivialDeclaratorInfo(SelT); TypedefDecl *SelTypedef = TypedefDecl::Create(Context, CurContext, SourceLocation(), diff --git a/test/Analysis/MissingDealloc.m b/test/Analysis/MissingDealloc.m index 502973a173..5b8b334901 100644 --- a/test/Analysis/MissingDealloc.m +++ b/test/Analysis/MissingDealloc.m @@ -39,8 +39,7 @@ typedef struct objc_selector *SEL; @end -// 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}} +@implementation TestSELs - (id)init { if( (self = [super init]) ) { a = @selector(a); |