mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Frontend: -emit-silgen exits with non-zero status code if a diagnostic was emitted
This commit is contained in:
@@ -406,7 +406,8 @@ static bool writeSIL(SILModule &SM, ModuleDecl *M, bool EmitVerboseSIL,
|
||||
auto OS = getFileOutputStream(OutputFilename, M->getASTContext());
|
||||
if (!OS) return true;
|
||||
SM.print(*OS, EmitVerboseSIL, M, SortSIL);
|
||||
return false;
|
||||
|
||||
return M->getASTContext().hadError();
|
||||
}
|
||||
|
||||
static bool writeSIL(SILModule &SM, const PrimarySpecificPaths &PSPs,
|
||||
|
||||
Reference in New Issue
Block a user