Skip to content

Fix a test that was failing on 32-bit platforms #73820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import ReferenceCountedObjCProperty

// CHECK: define swiftcc void @"$s4main10testGetteryyF"()
// CHECK: alloca ptr, align 8
// CHECK: %[[LC:.*]] = alloca ptr, align 8
// CHECK: %[[V4:.*]] = load ptr, ptr @"\01L_selector(lc)", align 8
// CHECK: alloca ptr, align {{4|8}}
// CHECK: %[[LC:.*]] = alloca ptr, align {{4|8}}
// CHECK: %[[V4:.*]] = load ptr, ptr @"\01L_selector(lc)", align {{4|8}}
// CHECK: %[[V5:.*]] = call ptr @objc_msgSend(ptr %{{.*}}, ptr %[[V4]])
// CHECK: %[[V6:.*]] = icmp ne ptr %[[V5]], null
// CHECK: br i1 %[[V6]], label %[[LIFETIME_NONNULL_VALUE:.*]], label %[[LIFETIME_CONT:.*]]
Expand All @@ -17,8 +17,8 @@ import ReferenceCountedObjCProperty
// CHECK-NEXT: br label %[[LIFETIME_CONT]]

// CHECK: [[LIFETIME_CONT]]:
// CHECK: store ptr %[[V5]], ptr %[[LC]], align 8
// CHECK: %[[TODESTROY:.*]] = load ptr, ptr %[[LC]], align 8
// CHECK: store ptr %[[V5]], ptr %[[LC]], align {{4|8}}
// CHECK: %[[TODESTROY:.*]] = load ptr, ptr %[[LC]], align {{4|8}}
// CHECK: call void @_Z9LCReleasePN2NS10LocalCountE(ptr %[[TODESTROY]])

public func testGetter() {
Expand Down