Skip to content

Commit 4cd373c

Browse files
authored
Merge pull request #38692 from egorzhdan/cxx-ir-fix
C++ Interop: fix `ClangImporter/cxx_interop_ir.swift` on 32-bit
2 parents 9d39821 + 04dde14 commit 4cd373c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/ClangImporter/cxx_interop_ir.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//
33
// We can't yet call member functions correctly on Windows (SR-13129).
44
// XFAIL: OS=windows-msvc
5-
// REQUIRES: SR-14986
65

76
import CXXInterop
87

@@ -44,7 +43,7 @@ func basicMethods(a: UnsafeMutablePointer<Methods>) -> Int32 {
4443
}
4544

4645
// CHECK-LABEL: define hidden swiftcc i32 @"$s6cxx_ir17basicMethodsConst1as5Int32VSpySo0D0VG_tF"(i8* %0)
47-
// CHECK: [[THIS_PTR1:%.*]] = alloca %TSo7MethodsV, align 8
46+
// CHECK: [[THIS_PTR1:%.*]] = alloca %TSo7MethodsV, align {{4|8}}
4847
// CHECK: [[THIS_PTR2:%.*]] = bitcast %TSo7MethodsV* [[THIS_PTR1]] to %class.Methods*
4948
// CHECK: [[THIS_PTR3:%.*]] = bitcast %TSo7MethodsV* [[THIS_PTR1]] to %class.Methods*
5049
// CHECK: [[RESULT:%.*]] = call {{(signext )?}}i32 @{{_ZNK7Methods17SimpleConstMethodEi|"\?SimpleConstMethod@Methods@@QEBAHH@Z"}}(%class.Methods* [[THIS_PTR3]], i32{{( signext)?}} 3)

0 commit comments

Comments
 (0)