diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-06-29 22:44:21 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-06-29 22:44:21 +0000 |
commit | 120bc77f4c9ec281ec5e2d2a856c80cfae18bb57 (patch) | |
tree | b30d3235bf9e480d3f89a8b449aefd6628597597 /test/CodeGenObjC/assign.m | |
parent | f1d5d8a7f217119063232f72f74cdba4bebbd714 (diff) | |
download | clang-120bc77f4c9ec281ec5e2d2a856c80cfae18bb57.tar.gz |
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
Diffstat (limited to 'test/CodeGenObjC/assign.m')
-rw-r--r-- | test/CodeGenObjC/assign.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGenObjC/assign.m b/test/CodeGenObjC/assign.m index 37b406ef85..87e3834fc8 100644 --- a/test/CodeGenObjC/assign.m +++ b/test/CodeGenObjC/assign.m @@ -27,6 +27,10 @@ void f0(C0 *a) { // 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: } } |