summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprObjC.cpp
diff options
context:
space:
mode:
authorKaelyn Uhrain <rikka@google.com>2012-01-31 23:49:25 +0000
committerKaelyn Uhrain <rikka@google.com>2012-01-31 23:49:25 +0000
commit4e8942c139b33e2dcacccd62d643a953df9e47db (patch)
tree2cbbbda508ff56e03f509eaf7919315b922963bf /clang/lib/Sema/SemaExprObjC.cpp
parent440e9db9e7292eb717ba7dcaf626aedb907055a2 (diff)
downloadbcm5719-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.cpp4
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.
OpenPOWER on IntegriCloud