mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Update the SIL stage at the end of the canonicalization phase.
Swift SVN r8067
This commit is contained in:
@@ -58,6 +58,8 @@ bool swift::runSILDiagnosticPasses(SILModule &Module) {
|
||||
// Generate diagnostics.
|
||||
emitSILDataflowDiagnostics(&Module);
|
||||
|
||||
Module.setStage(SILStage::Canonical);
|
||||
|
||||
// If errors were produced during SIL analysis, return true.
|
||||
return Ctx.hadError();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user