-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Remove some usages of InOutType #17043
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
Remove some usages of InOutType #17043
Conversation
@CodaFi I still have to update the AST printer, there's some stuff in code completion that's suspect as well. |
@CodaFi Also I'd like to get rid of |
54e3dcf
to
44971fa
Compare
@swift-ci Please smoke test |
@swift-ci Please smoke test |
NFC for now, but by not looking at the FunctionType of the AST Decl, we no longer pass an InOutType to type lowering here, which won't be supported soon.
… InOutType Most callers did not want the InOutType here, and checked the ParamDecl's flags instead.
There is still some unfortunate hackery around InOutType in SILGenProlog.cpp, but I don't want to clean it up yet.
44971fa
to
1955778
Compare
// FIXME: Should this check if the lowered SILType is address only | ||
// instead? Otherwise optionals of archetypes etc will still have | ||
// 'Unwrap' set to false. | ||
bool Unwrap = VarInfo->Constant || SILTy.is<ArchetypeType>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dcci @adrian-prantl It looks like this wasn't doing anything, so I removed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me if it sticks together.
@swift-ci Please smoke test |
@swift-ci Please smoke test macOS |
@swift-ci test |
Build failed |
@swift-ci Please smoke test macOS |
Build failed |
@swift-ci Please test source compatibility |
1 similar comment
@swift-ci Please test source compatibility |
Most callers did not want the InOutType here, and checked
the ParamDecl's flags instead.