mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Modules containing SIL may not be emitted before SIL diagnostics.
...and probably should not be emitted before optimization passes. The new frontend got this wrong, and the old one pretended to allow it but then silently didn't write a module at all. Swift SVN r13189
This commit is contained in:
@@ -415,12 +415,12 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
||||
case FrontendOptions::DumpParse:
|
||||
case FrontendOptions::DumpAST:
|
||||
case FrontendOptions::PrintAST:
|
||||
case FrontendOptions::EmitSILGen:
|
||||
case FrontendOptions::Immediate:
|
||||
case FrontendOptions::REPL:
|
||||
Diags.diagnose(SourceLoc(), diag::error_mode_cannot_emit_module);
|
||||
return true;
|
||||
case FrontendOptions::EmitModuleOnly:
|
||||
case FrontendOptions::EmitSILGen:
|
||||
case FrontendOptions::EmitSIL:
|
||||
case FrontendOptions::EmitIR:
|
||||
case FrontendOptions::EmitBC:
|
||||
|
||||
Reference in New Issue
Block a user