IRgen: Assignment to Objective-C properties shouldn't reload the value, for
complex values either. Previously we did this properly for regular assignment,
but not for compound assignment.
- Also, tidy up assignment code a bit to look more like the scalar path.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107217 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenObjC/assign.m b/test/CodeGenObjC/assign.m
index 37b406e..87e3834 100644
--- a/test/CodeGenObjC/assign.m
+++ b/test/CodeGenObjC/assign.m
@@ -27,6 +27,10 @@
// CHECK: objc_msgSend
int l3 = (a.x0 += 1);
+// CHECK: objc_msgSend
+// CHECK: objc_msgSend
+ _Complex int l4 = (a.x1 += 1);
+
// CHECK-NOT: objc_msgSend
// CHECK: }
}