-
Notifications
You must be signed in to change notification settings - Fork 10.5k
SR-12022: refactor LiteralExpr to combine common initializer code #34132
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-12022: refactor LiteralExpr to combine common initializer code #34132
Conversation
@brentdax could you please review? |
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.
Type-checker changes look good to me!
60ef4b6
to
b908e9e
Compare
b908e9e
to
4fa17bf
Compare
@swift-ci test |
@swift-ci test source compatibility |
Build failed |
Build failed |
@CodaFi Is this a CI related errors, or have I missed something in launching the test fixtures locally? Could you please relaunch? Thanks. |
That’s a CI related issue. Fixed by updating cmake. Let’s re-run everything. |
@swift-ci please test |
@swift-ci please test source compatibility |
Build failed |
|
@swift-ci please test Linux platform |
Build failed |
@swift-ci please test Linux platform |
Build failed |
Build failed |
@swift-ci please test |
I'm just going to land this, we could always revert later if something comes up. Thank you, @Interfere! |
Revisit inheritance chain for
LiteralExpr
.get/setInitializer()
methods to abstract classLiteralExpr
;BuiltinLiteralExpr
and hoistget/setBuiltinInitializer
methods to it;SILGenFunction::emitLiteral()
;get/setResultInit()
~>get/setInitializer()
;include/swift/AST/ExprNodes.def
.Resolves SR-12022.