diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-02-03 20:11:42 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-03 20:11:42 +0000 |
| commit | 45858d2d59718f95fc3ba8dc7aac63d217dc3abd (patch) | |
| tree | 4ef415ed071bc502549930c3383e1e25ae6d941d /clang/lib/Sema/SemaExprObjC.cpp | |
| parent | d231689adb9966454451aebc18d99473cc9519f2 (diff) | |
| download | bcm5719-llvm-45858d2d59718f95fc3ba8dc7aac63d217dc3abd.tar.gz bcm5719-llvm-45858d2d59718f95fc3ba8dc7aac63d217dc3abd.zip | |
Revert "Numerous changes to selector handling:", this breaks a whole bunch of
working code, for no apparent reason.
llvm-svn: 95244
Diffstat (limited to 'clang/lib/Sema/SemaExprObjC.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExprObjC.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp index 8ce782b961e..85956c3e7e0 100644 --- a/clang/lib/Sema/SemaExprObjC.cpp +++ b/clang/lib/Sema/SemaExprObjC.cpp @@ -140,20 +140,7 @@ Sema::ExprResult Sema::ParseObjCSelectorExpression(Selector Sel, Diag(SelLoc, diag::warn_undeclared_selector) << Sel; QualType Ty = Context.getObjCSelType(); - ObjCSelectorExpr *E = - new (Context) ObjCSelectorExpr(Ty, Sel, AtLoc, RParenLoc); - // Make sure that we have seen this selector. There are lots of checks we - // should be doing on this selector. For example, when this is passed as the - // second argument to objc_msgSend() on the Mac runtime, or as the selector - // argument to the -performSelector:. We can do these checks at run time - // with the GNU runtimes, but the Apple runtimes let you sneak stack - // corruption in easily by passing the wrong selector to these functions if - // there is no static checking. - // - // Only log a warning on the GNU runtime. - E->setMethodDecl(LookupInstanceMethodInGlobalPool(Sel, - SourceRange(LParenLoc, LParenLoc), !LangOpts.NeXTRuntime)); - return E; + return new (Context) ObjCSelectorExpr(Ty, Sel, AtLoc, RParenLoc); } Sema::ExprResult Sema::ParseObjCProtocolExpression(IdentifierInfo *ProtocolId, |

