-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Use a special DeclBaseName for init
#15201
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
Conversation
@swift-ci Please smoke test |
lib/IRGen/GenProto.cpp
Outdated
LookUpConformanceInModule(IGF.getSwiftModule())); | ||
} | ||
} | ||
|
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.
All this IRGen stuff should probably go in another PR, even if it's correct.
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.
Yep, I'll rebase shortly. 'WIP' also means "not ready for review" :) Actually main things its missing is tests.
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.
... and apparently it doesn't compile. I'll tag you once its done.
23afe7c
to
f4813d4
Compare
lib/AST/ASTContext.cpp
Outdated
@@ -4289,6 +4289,9 @@ void DeclName::CompoundDeclName::Profile(llvm::FoldingSetNodeID &id, | |||
|
|||
void DeclName::initialize(ASTContext &C, DeclBaseName baseName, | |||
ArrayRef<Identifier> argumentNames) { | |||
if (!baseName.isSpecial()) | |||
assert(baseName.getIdentifier() != C.getIdentifier("init")); |
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.
Isn't this the very thing that will break with `init`
?
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.
The assertion is only temporary while I work out some other issues.
c92de93
to
84a1239
Compare
84a1239
to
e22acf6
Compare
@swift-ci Please test source compatibility |
1 similar comment
@swift-ci Please test source compatibility |
3ecd81e
to
f3f5cf8
Compare
@swift-ci Please test |
@swift-ci Please test source compatibility |
Build failed |
Build failed |
f3f5cf8
to
c2b1b91
Compare
Not used yet.
Fixes <rdar://problem/35852727>, <https://bugs.swift.org/browse/SR-1660>, <https://bugs.swift.org/browse/SR-6557>.
c2b1b91
to
34fd4ae
Compare
@swift-ci Please smoke test |
@swift-ci Please test source compatibility |
@swift-ci Please test |
@swift-ci Please test source compatibility |
@swift-ci Please test |
init
init
Fixes https://bugs.swift.org/browse/SR-1660, rdar://problem/35852727, https://bugs.swift.org/browse/SR-6557.