From bf9a86b50f04943b629650438508b0df1c5109dc Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 16 Feb 2011 00:49:34 +0000 Subject: 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. llvm-svn: 125627 --- clang/test/CodeGenObjC/objc2-weak-block-call.m | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'clang/test/CodeGenObjC/objc2-weak-block-call.m') diff --git a/clang/test/CodeGenObjC/objc2-weak-block-call.m b/clang/test/CodeGenObjC/objc2-weak-block-call.m index 4f7b554f454..8cd233e286b 100644 --- a/clang/test/CodeGenObjC/objc2-weak-block-call.m +++ b/clang/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 -- cgit v1.2.3