summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-04-02 18:57:54 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-04-02 18:57:54 +0000
commitf12ff4df48e74ac553bf138633afdc95444e4c0b (patch)
tree1b4df9f302556b2aa79235b88eaf9d6ace95e8f9 /clang/lib/CodeGen/CGObjC.cpp
parent55a634996f4769b1bc6c1062d895043edeafc298 (diff)
downloadbcm5719-llvm-f12ff4df48e74ac553bf138633afdc95444e4c0b.tar.gz
bcm5719-llvm-f12ff4df48e74ac553bf138633afdc95444e4c0b.zip
Objective-C: Provide fixit hints when warning
about 'isa' ivar being explicitely accessed when base is a user class object reference. // rdar://13503456 llvm-svn: 178562
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp
index 9ee3c8b60e0..e8378becf12 100644
--- a/clang/lib/CodeGen/CGObjC.cpp
+++ b/clang/lib/CodeGen/CGObjC.cpp
@@ -1189,7 +1189,8 @@ CodeGenFunction::generateObjCSetterBody(const ObjCImplementationDecl *classImpl,
selfDecl->getType(), CK_LValueToRValue, &self,
VK_RValue);
ObjCIvarRefExpr ivarRef(ivar, ivar->getType().getNonReferenceType(),
- SourceLocation(), &selfLoad, true, true);
+ SourceLocation(), SourceLocation(),
+ &selfLoad, true, true);
ParmVarDecl *argDecl = *setterMethod->param_begin();
QualType argType = argDecl->getType().getNonReferenceType();
OpenPOWER on IntegriCloud