-
Notifications
You must be signed in to change notification settings - Fork 210
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Swift compiler crashes during the FoundationEssentials build for WebAssembly target in Swift CI.
https://ci.swift.org/job/oss-swift-pr-test-crosscompile-wasm-ubuntu-20_04/3929/console
SIL verification failed: a destructure of a move-only-type-with-deinit requires a drop_deinit: isa<DropDeinitInst>(lookThroughOwnershipInsts(DSI->getOperand()))
11:52:08 Verifying instruction:
11:52:08 %1 = argument of bb0 : $Subprogress // users: %10, %11, %6, %3
11:52:08 -> (%11, %12, %13) = destructure_struct %1 : $Subprogress // users: %117, %14, %15
11:52:08 In function:
11:52:08 // Subprogress.start(totalCount:)
11:52:08 // Isolation: unspecified
11:52:08 sil [ossa] @$s20FoundationEssentials11SubprogressV5start10totalCountAA15ProgressManagerCSiSg_tF : $@convention(method) (Optional<Int>, @owned Subprogress) -> @owned ProgressManager {
11:52:08 [%1: read v**.c*.v**, write v**.c*.v**, copy **, destroy v**.c*.v**]
11:52:08 [global: read,write,copy,destroy,allocate,deinit_barrier]
...
Of course, this is a compiler-side issue but allow me to open it here for visibility.
To Reproduce
Build the latest main revision of swift-foundation 5f2bbd9 with the following command
swift build --swift-sdk swift-DEVELOPMENT-SNAPSHOT-2025-11-03-a_wasm -c releaseIt looks like 4273e23 is the first bad commit
Expected behavior
Do not crash the compiler
Configuration (please complete the following information):
- Swift Version: swift-DEVELOPMENT-SNAPSHOT-2025-11-03-a
- OS: Ubuntu 22.04
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working