Skip to content
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

[SR-10318] Marking compiler-intrinsic bool conversion functions as @_transparent crashes the compiler #52718

Open
Catfish-Man opened this issue Apr 5, 2019 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@Catfish-Man
Copy link
Member

Previous ID SR-10318
Radar rdar://problem/49651421
Original Reporter @Catfish-Man
Type Bug

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: 7c2e67ef3f0fd1b63e28401fea35bdf0

blocks:

  • SR-10294 convertBoolToDarwinBool and friends should be inlined

Issue Description:

If you apply the attached standard library patch, the compiler will crash (I believe when trying to emit debug info)

Search for 'UNREACHABLE executed at /Users/buildnode/jenkins/workspace/swift-PR-osx-smoke-test/branch-master/swift/lib/SIL/SILLocation.cpp:220!' in the build log

@Catfish-Man
Copy link
Member Author

Causing this to happen should be as simple as calling any bridged function that takes a BOOL or Boolean argument, e.g.

(NSNumber(true)).boolValue

and compiling with debug info

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

1 participant