mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Change CodeGen to use a diagnostic consumer (#5847)
We've been trying to have errors/warnings all go through the diagnostics consumers instead of straight to stderr.
This commit is contained in:
@@ -741,8 +741,7 @@ auto CompilationUnit::PostCompile() -> void {
|
||||
|
||||
auto CompilationUnit::RunCodeGenHelper() -> bool {
|
||||
std::optional<CodeGen> codegen =
|
||||
CodeGen::Make(module_.get(), options_->codegen_options.target,
|
||||
driver_env_->error_stream);
|
||||
CodeGen::Make(module_.get(), options_->codegen_options.target, consumer_);
|
||||
if (!codegen) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user