diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2013-04-02 18:57:54 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-04-02 18:57:54 +0000 |
| commit | f12ff4df48e74ac553bf138633afdc95444e4c0b (patch) | |
| tree | 1b4df9f302556b2aa79235b88eaf9d6ace95e8f9 /clang/lib/CodeGen/CGObjC.cpp | |
| parent | 55a634996f4769b1bc6c1062d895043edeafc298 (diff) | |
| download | bcm5719-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.cpp | 3 |
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(); |

