From 4e8942c139b33e2dcacccd62d643a953df9e47db Mon Sep 17 00:00:00 2001 From: Kaelyn Uhrain Date: Tue, 31 Jan 2012 23:49:25 +0000 Subject: Make the callback object to Sema::CorrectTypo mandatory. llvm-svn: 149451 --- clang/lib/Sema/SemaExprObjC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Sema/SemaExprObjC.cpp') 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 Validator; if (TypoCorrection Corrected = CorrectTypo( DeclarationNameInfo(MemberName, MemberLoc), LookupOrdinaryName, NULL, - NULL, &Validator, IFace, false, OPT)) { + NULL, Validator, IFace, false, OPT)) { ObjCPropertyDecl *Property = Corrected.getCorrectionDeclAs(); 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. -- cgit v1.2.3