aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaObjCProperty.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-10-14 21:30:10 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-10-14 21:30:10 +0000
commitfa432391a708448518df1e6ced4e34f4c349d169 (patch)
treef1fc9aa9ea41106caf991387d38121c2444172ce /lib/Sema/SemaObjCProperty.cpp
parented7c308fac03da7168e167de15d231af8aed02a6 (diff)
Put line number on the diagnostic. //rdar: //8550657.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116519 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaObjCProperty.cpp')
-rw-r--r--lib/Sema/SemaObjCProperty.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp
index fbb87b9bf4..f7555cfa6a 100644
--- a/lib/Sema/SemaObjCProperty.cpp
+++ b/lib/Sema/SemaObjCProperty.cpp
@@ -501,7 +501,7 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S,
ParmVarDecl *Param = (*P);
Expr *rhs = new (Context) DeclRefExpr(Param,Param->getType(),
SourceLocation());
- ExprResult Res = BuildBinOp(S, SourceLocation(),
+ ExprResult Res = BuildBinOp(S, lhs->getLocEnd(),
BO_Assign, lhs, rhs);
PIDecl->setSetterCXXAssignment(Res.takeAs<Expr>());
}