objective-C arc: Underline the selector when issuing

arc specific diagnostic on the selector. This is objc-arc
part of // rdar://11303469

llvm-svn: 168756
This commit is contained in:
Fariborz Jahanian 2012-11-28 01:27:44 +00:00
parent 0a2d4e2dea
commit 32c1350673
1 changed files with 2 additions and 1 deletions

View File

@ -2236,7 +2236,8 @@ ExprResult Sema::BuildInstanceMessage(Expr *Receiver,
if (!Method && getLangOpts().ObjCAutoRefCount) {
Diag(Loc, diag::err_arc_may_not_respond)
<< OCIType->getPointeeType() << Sel;
<< OCIType->getPointeeType() << Sel
<< SourceRange(SelectorLocs.front(), SelectorLocs.back());
return ExprError();
}