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-6770] [SILOptimizer] LoadableByAddress breaks the IR (verifier failure) #49319

Open
dcci mannequin opened this issue Jan 16, 2018 · 2 comments
Open

[SR-6770] [SILOptimizer] LoadableByAddress breaks the IR (verifier failure) #49319

dcci mannequin opened this issue Jan 16, 2018 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software verifier

Comments

@dcci
Copy link
Mannequin

dcci mannequin commented Jan 16, 2018

Previous ID SR-6770
Radar rdar://problem/36530231
Original Reporter @dcci
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash, Verifier
Assignee shajrawi (JIRA)
Priority Medium

md5: 590d1ebdc1d9c92a1862c8f707c1c923

Issue Description:

import Swift
protocol P0 {}
enum GenericEnum2<T> {
  case Y(T)
}
sil public_external @generic_indirect_return2 : $@convention(thin) <T> (Int) -> @owned GenericEnum2<T>
sil @partial_apply_generic_indirect_return2 : $@convention(thin) (Int) -> @callee_owned () -> @owned GenericEnum2<Int> {
  bb0(%0 : $Int):
  %fn = function_ref @generic_indirect_return2 :$@convention(thin) <T> (Int) -> @owned GenericEnum2<T>
  %pa = partial_apply %fn<Int> (%0) : $@convention(thin) <T> (Int) -> @owned GenericEnum2<T>
  return %pa : $@callee_owned () -> @owned GenericEnum2<Int>
}

cmdline:

/Users/davide/swift/build/Ninja-DebugAssert/swift-macosx-x86_64/bin/swift -frontend -target x86_64-apple-macosx10.9 red.sil -emit-ir -assume-parsing-unqualified-ownership-sil -o /dev/null -sil-verify-all

I'll take a look tomorrow. CC: @eeckstein as we discussed this in person

@dcci
Copy link
Mannequin Author

dcci mannequin commented Jan 16, 2018

@swift-ci create

@dcci
Copy link
Mannequin Author

dcci mannequin commented Jan 18, 2018

Joe is looking at this one.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 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 crash Bug: A crash, i.e., an abnormal termination of software verifier
Projects
None yet
Development

No branches or pull requests

1 participant