Don't write clif ir by default when debug assertions are enabled
This commit is contained in:
parent
25f7eeec46
commit
a8f3877c36
1 changed files with 4 additions and 6 deletions
|
@ -201,12 +201,10 @@ impl<M: Module> FunctionCx<'_, '_, M> {
|
|||
}
|
||||
|
||||
pub(crate) fn should_write_ir(tcx: TyCtxt<'_>) -> bool {
|
||||
cfg!(debug_assertions)
|
||||
|| tcx
|
||||
.sess
|
||||
.opts
|
||||
.output_types
|
||||
.contains_key(&OutputType::LlvmAssembly)
|
||||
tcx.sess
|
||||
.opts
|
||||
.output_types
|
||||
.contains_key(&OutputType::LlvmAssembly)
|
||||
}
|
||||
|
||||
pub(crate) fn write_ir_file<'tcx>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue