diff options
author | Kaelyn Uhrain <rikka@google.com> | 2012-01-31 23:49:25 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2012-01-31 23:49:25 +0000 |
commit | 16e46dd0c284296cea819dfbf67942ecef02894d (patch) | |
tree | eb74d6a94e34e33abe288918159f958afb4e460f /lib/Sema/SemaExprObjC.cpp | |
parent | 4ac38094a1844166ac455004bf94d0aaf1e2df74 (diff) |
Make the callback object to Sema::CorrectTypo mandatory.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprObjC.cpp')
-rw-r--r-- | lib/Sema/SemaExprObjC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index a0a580c547..4179ff870e 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/lib/Sema/SemaExprObjC.cpp @@ -704,7 +704,7 @@ HandleExprPropertyRefExpr(const ObjCObjectPointerType *OPT, DeclFilterCCC<ObjCPropertyDecl> Validator; if (TypoCorrection Corrected = CorrectTypo( DeclarationNameInfo(MemberName, MemberLoc), LookupOrdinaryName, NULL, - NULL, &Validator, IFace, false, OPT)) { + NULL, Validator, IFace, false, OPT)) { ObjCPropertyDecl *Property = Corrected.getCorrectionDeclAs<ObjCPropertyDecl>(); DeclarationName TypoResult = Corrected.getCorrection(); @@ -936,7 +936,7 @@ Sema::ObjCMessageKind Sema::getObjCMessageKind(Scope *S, ObjCInterfaceOrSuperCCC Validator(getCurMethodDecl()); if (TypoCorrection Corrected = CorrectTypo(Result.getLookupNameInfo(), Result.getLookupKind(), S, NULL, - &Validator)) { + Validator)) { if (Corrected.isKeyword()) { // If we've found the keyword "super" (the only keyword that would be // returned by CorrectTypo), this is a send to super. |