mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add condition resolution as a new phrase post-parse
An unfortunately necessary thing to delay defrosting function bodies as long as we can.
This commit is contained in:
@@ -446,6 +446,7 @@ void CompilerInstance::performSema() {
|
||||
|
||||
Diags.setSuppressWarnings(DidSuppressWarnings);
|
||||
|
||||
performConditionResolution(*NextInput);
|
||||
performNameBinding(*NextInput);
|
||||
}
|
||||
|
||||
@@ -508,8 +509,10 @@ void CompilerInstance::performSema() {
|
||||
if (mainIsPrimary && !Context->hadError() &&
|
||||
Invocation.getFrontendOptions().PlaygroundTransform)
|
||||
performPlaygroundTransform(MainFile, Invocation.getFrontendOptions().PlaygroundHighPerformance);
|
||||
if (!mainIsPrimary)
|
||||
if (!mainIsPrimary) {
|
||||
performConditionResolution(MainFile);
|
||||
performNameBinding(MainFile);
|
||||
}
|
||||
}
|
||||
|
||||
// Type-check each top-level input besides the main source file.
|
||||
|
||||
Reference in New Issue
Block a user