Update the SIL stage at the end of the canonicalization phase.

Swift SVN r8067
This commit is contained in:
Mark Lacey
2013-09-10 00:29:00 +00:00
parent 24f4706056
commit a558acc86a

View File

@@ -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();
}