Skip to content

Commit a8f3877

Browse files
committed
Don't write clif ir by default when debug assertions are enabled
1 parent 25f7eee commit a8f3877

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/pretty_clif.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,10 @@ impl<M: Module> FunctionCx<'_, '_, M> {
201201
}
202202

203203
pub(crate) fn should_write_ir(tcx: TyCtxt<'_>) -> bool {
204-
cfg!(debug_assertions)
205-
|| tcx
206-
.sess
207-
.opts
208-
.output_types
209-
.contains_key(&OutputType::LlvmAssembly)
204+
tcx.sess
205+
.opts
206+
.output_types
207+
.contains_key(&OutputType::LlvmAssembly)
210208
}
211209

212210
pub(crate) fn write_ir_file<'tcx>(

0 commit comments

Comments
 (0)