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 | 4e8942c139b33e2dcacccd62d643a953df9e47db (patch) | |
tree | 2cbbbda508ff56e03f509eaf7919315b922963bf /clang/lib/Sema/SemaExprObjC.cpp | |
parent | 440e9db9e7292eb717ba7dcaf626aedb907055a2 (diff) | |
download | bcm5719-llvm-4e8942c139b33e2dcacccd62d643a953df9e47db.tar.gz bcm5719-llvm-4e8942c139b33e2dcacccd62d643a953df9e47db.zip |
Make the callback object to Sema::CorrectTypo mandatory.
llvm-svn: 149451
Diffstat (limited to 'clang/lib/Sema/SemaExprObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExprObjC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp index a0a580c5479..4179ff870e8 100644 --- a/clang/lib/Sema/SemaExprObjC.cpp +++ b/clang/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. |