Fields of ivars of struct types are considered ivars
themselves for gc API generation purposes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59828 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGValue.h b/lib/CodeGen/CGValue.h
index 3cf5d4a..59cfc54 100644
--- a/lib/CodeGen/CGValue.h
+++ b/lib/CodeGen/CGValue.h
@@ -168,8 +168,8 @@
bool isObjCWeak() const { return ObjCType == Weak; }
bool isObjCStrong() const { return ObjCType == Strong; }
- static void SetObjCIvar(LValue& R) {
- R.Ivar = true;
+ static void SetObjCIvar(LValue& R, bool iValue) {
+ R.Ivar = iValue;
}
static void SetObjCType(bool isWeak, bool isStrong, LValue& R) {