-
Notifications
You must be signed in to change notification settings - Fork 10.5k
SIL verification failed: A load with trivial ownership must load a trivial type: LI->getType().isTrivial(*LI->getFunction()) #79491
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
Comments
This seems like a recent regression since around 2025-02-14.
|
My local bisecting points to the PR #79186 I can reproduce this failure at commit c4af3b3 with the following repo snapshot
but cannot at the previous commit 1c1570b with the repo snapshot
or if I revert the PR with |
I'm taking a look |
eeckstein
added a commit
to eeckstein/swift
that referenced
this issue
Feb 25, 2025
Currently we don't support hoisting ownership instructions. But the check was missing a store of Optional.none because such a value has no ownership even if the optional is not trivial. Fixes a SIL verifier crash. swiftlang#79491
@eeckstein ty! |
Fixed with #79604 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The main branch toolchain build started to crash around Feb 16, 2025 with a SIL verification failure when building swift-syntax in release mode in our Windows CI.
Reproduction
A reduced test
e.g., https://download.swift.org/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2025-02-18-a/swift-DEVELOPMENT-SNAPSHOT-2025-02-18-a-osx.pkg
Repro.swift
Stack dump
On macOS
On Windows
Expected behavior
No compiler crash
Environment
macOS and Windows
Additional information
No response
The text was updated successfully, but these errors were encountered: