aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/objc2-weak-block-call.m
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-02-16 00:49:34 +0000
committerJohn McCall <rjmccall@apple.com>2011-02-16 00:49:34 +0000
commitc20e20498e3d248c754c7c5c8d0277f444d584df (patch)
treec4a5b22d660ed873bfdb76c7077b4e7d09117a3e /test/CodeGenObjC/objc2-weak-block-call.m
parent98d810ee83d4c4bf5d89bbb43829533b84b20ecf (diff)
Don't call objc_read_weak as part of emitting a block literal.
Nobody ever gave me a clear reason for why we were doing this, and now it's apparently causing serious problems, so if *not* having this causes problems, we get to solve them the right way this time. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC/objc2-weak-block-call.m')
-rw-r--r--test/CodeGenObjC/objc2-weak-block-call.m13
1 files changed, 4 insertions, 9 deletions
diff --git a/test/CodeGenObjC/objc2-weak-block-call.m b/test/CodeGenObjC/objc2-weak-block-call.m
index 4f7b554f45..8cd233e286 100644
--- a/test/CodeGenObjC/objc2-weak-block-call.m
+++ b/test/CodeGenObjC/objc2-weak-block-call.m
@@ -1,7 +1,5 @@
-// RUN: %clang_cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -S %s -o %t-64.s
-// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
-// RUN: %clang_cc1 -fblocks -fobjc-gc -triple i386-apple-darwin -S %s -o %t-32.s
-// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s
+// RUN: %clang_cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -emit-llvm %s -o - | FileCheck -check-prefix LP64 %s
+// RUN: %clang_cc1 -fblocks -fobjc-gc -triple i386-apple-darwin -emit-llvm %s -o - | FileCheck -check-prefix LP64 %s
@interface MyView
- (void)MyView_sharedInit;
@@ -21,9 +19,6 @@ void foo(MyView *(^obj)(void)) ;
}
@end
-// CHECK-LP64: callq _objc_read_weak
-// CHECK-LP64: callq _objc_read_weak
-
-// CHECK-LP32: calll L_objc_read_weak
-// CHECK-LP32: calll L_objc_read_weak
+// CHECK-LP64: call i8* @objc_read_weak
+// CHECK-LP32: call i8* @objc_read_weak