forked from OSchip/llvm-project
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:
parent
0a2d4e2dea
commit
32c1350673
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue