diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-27 17:30:38 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-27 17:30:38 +0000 |
commit | db148be93c9af45da1f3aa9302c577618a56e6ea (patch) | |
tree | 30878bea76d21f92becdd1d3e0664d12e1894a05 /test/CodeGenObjCXX | |
parent | 06e504462014b0506a70c7730ea45c551a103364 (diff) |
Copying result of object property reference expression
into a temporary is elidable as well.
(Finishes up radar 8291337).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjCXX')
-rw-r--r-- | test/CodeGenObjCXX/property-object-conditional-exp.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGenObjCXX/property-object-conditional-exp.mm b/test/CodeGenObjCXX/property-object-conditional-exp.mm index 0f44a2248a..826c351e79 100644 --- a/test/CodeGenObjCXX/property-object-conditional-exp.mm +++ b/test/CodeGenObjCXX/property-object-conditional-exp.mm @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -emit-llvm -o - %s +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s struct CGRect { char* origin; @@ -22,6 +22,8 @@ extern "C" bool CGRectIsEmpty(CGRect); CGRect dataRect; CGRect virtualBounds; +// CHECK: [[SRC:%.*]] = call %struct.CGRect bitcast (i8* (i8*, i8*, ...)* @objc_msgSend +// CHECK-NEXT:store %struct.CGRect [[SRC]], %struct.CGRect* dataRect = CGRectIsEmpty(virtualBounds) ? self.bounds : virtualBounds; dataRect = CGRectIsEmpty(virtualBounds) ? [self bounds] : virtualBounds; dataRect = CGRectIsEmpty(virtualBounds) ? virtualBounds : self.bounds; |