aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/ivar-invariant.m
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-12-12 17:01:34 +0100
committerNikita Popov <npopov@redhat.com>2022-12-12 17:11:46 +0100
commit9466b49171dc4b21f56a48594fc82b1e52f5358a (patch)
treecd69f2cf7223ae9c46149b164986139d3dd662a8 /clang/test/CodeGenObjC/ivar-invariant.m
parent5e6467bb3fd214b96b69de8bba4852002ef2c9b9 (diff)
downloadllvm-9466b49171dc4b21f56a48594fc82b1e52f5358a.zip
llvm-9466b49171dc4b21f56a48594fc82b1e52f5358a.tar.gz
llvm-9466b49171dc4b21f56a48594fc82b1e52f5358a.tar.bz2
[Clang] Convert various tests to opaque pointers (NFC)
These were all tests where no manual fixup was required.
Diffstat (limited to 'clang/test/CodeGenObjC/ivar-invariant.m')
-rw-r--r--clang/test/CodeGenObjC/ivar-invariant.m18
1 files changed, 9 insertions, 9 deletions
diff --git a/clang/test/CodeGenObjC/ivar-invariant.m b/clang/test/CodeGenObjC/ivar-invariant.m
index 6cc4543..d4cdcb9 100644
--- a/clang/test/CodeGenObjC/ivar-invariant.m
+++ b/clang/test/CodeGenObjC/ivar-invariant.m
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-apple-darwin -fblocks -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-apple-darwin -fblocks -emit-llvm -o - %s | FileCheck %s
@interface NSObject
+ (id) new;
@@ -28,8 +28,8 @@
}
@end
-// CHECK: define internal i8* @"\01-[Derived init]"
-// CHECK: [[IVAR:%.*]] = load i64, i64* @"OBJC_IVAR_$_Derived.member", align 8, !invariant.load
+// CHECK: define internal ptr @"\01-[Derived init]"
+// CHECK: [[IVAR:%.*]] = load i64, ptr @"OBJC_IVAR_$_Derived.member", align 8, !invariant.load
void * variant_load_1(int i) {
void *ptr;
@@ -40,8 +40,8 @@ void * variant_load_1(int i) {
return ptr;
}
-// CHECK-LABEL: define{{.*}} i8* @variant_load_1(i32 noundef %i)
-// CHECK: [[IVAR:%.*]] = load i64, i64* @"OBJC_IVAR_$_Derived.member", align 8{{$}}
+// CHECK-LABEL: define{{.*}} ptr @variant_load_1(i32 noundef %i)
+// CHECK: [[IVAR:%.*]] = load i64, ptr @"OBJC_IVAR_$_Derived.member", align 8{{$}}
@interface Container : Derived @end
@implementation Container
@@ -51,8 +51,8 @@ void * variant_load_1(int i) {
}
@end
-// CHECK-LABEL: define internal i8* @"\01-[Container invariant_load_1]"
-// CHECK: [[IVAR:%.*]] = load i64, i64* @"OBJC_IVAR_$_Derived.member", align 8, !invariant.load
+// CHECK-LABEL: define internal ptr @"\01-[Container invariant_load_1]"
+// CHECK: [[IVAR:%.*]] = load i64, ptr @"OBJC_IVAR_$_Derived.member", align 8, !invariant.load
@interface ForBlock
{
@@ -61,8 +61,8 @@ void * variant_load_1(int i) {
}
@end
-// CHECK-LABEL: define internal i8* @block_block_invoke
-// CHECK: load i64, i64* @"OBJC_IVAR_$_ForBlock.foo"
+// CHECK-LABEL: define internal ptr @block_block_invoke
+// CHECK: load i64, ptr @"OBJC_IVAR_$_ForBlock.foo"
id (^block)(ForBlock*) = ^(ForBlock* a) {
return a->foo;
};