Skip to content

Commit 0842787

Browse files
authored
Merge pull request #70929 from finagolfin/arm
[armv7] Fix static-vtable-stubs test for 32-bit platforms
2 parents 7467c71 + c5bb069 commit 0842787

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ elseif(BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS" OR SWIFT_BUILD_SWIFT_SYNTAX)
870870
set(SWIFT_EXEC_FOR_SWIFT_MODULES "${CMAKE_Swift_COMPILER}")
871871
endif()
872872

873-
if(SWIFT_BUILD_SWIFT_SYNTAX)
873+
if(SWIFT_INCLUDE_TOOLS AND SWIFT_BUILD_SWIFT_SYNTAX)
874874
# Only "HOSTTOOLS" is supported in Linux when Swift parser integration is enabled.
875875
if(SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|OPENBSD|FREEBSD" AND NOT BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS")
876876
message(WARNING "Force setting BOOTSTRAPPING=HOSTTOOLS because Swift parser integration is enabled")

test/IRGen/static-vtable-stubs.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88

99
// REQUIRES: concurrency
1010

11-
// rdar://119900439
12-
// XFAIL: CPU=armv7k
13-
// XFAIL: CPU=arm64_32
14-
1511
//--- A.swift
1612
open class C {
1713
private var i: [ObjectIdentifier:Any] = [:]
@@ -34,7 +30,7 @@ final class D: C {
3430

3531
// CHECK: declare swiftcc ptr @"$s1M1CC1i33_807E3D81CC6CDD898084F3279464DDF9LLSDySOypGvg"(ptr swiftself) #0
3632
// CHECK: declare swiftcc void @"$s1M1CC1i33_807E3D81CC6CDD898084F3279464DDF9LLSDySOypGvs"(ptr, ptr swiftself) #0
37-
// CHECK: declare swiftcc { ptr, ptr } @"$s1M1CC1i33_807E3D81CC6CDD898084F3279464DDF9LLSDySOypGvM"(ptr noalias dereferenceable(32), ptr swiftself) #0
33+
// CHECK: declare swiftcc { ptr, ptr } @"$s1M1CC1i33_807E3D81CC6CDD898084F3279464DDF9LLSDySOypGvM"(ptr noalias dereferenceable({{32|16}}), ptr swiftself) #0
3834

3935
@main
4036
struct Main {

0 commit comments

Comments
 (0)