1
Fork 0

Don't write clif ir by default when debug assertions are enabled

This commit is contained in:
bjorn3 2021-02-21 10:42:31 +01:00
parent 25f7eeec46
commit a8f3877c36

View file

@ -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>(