1
Fork 0

Update src/pretty_clif.rs

Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
This commit is contained in:
Ömer Sinan Ağacan 2020-05-29 11:53:58 +03:00 committed by GitHub
parent 6dd0246199
commit c0ad988a3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -208,7 +208,7 @@ pub(crate) fn write_clif_file<'tcx>(
mut clif_comments: &CommentWriter,
value_ranges: Option<&cranelift_codegen::ValueLabelsRanges>,
) {
if !(cfg!(debug_assertions) || tcx.sess.opts.output_types.contains_key(&OutputType::LlvmAssembly)) {
if !cfg!(debug_assertions) && !tcx.sess.opts.output_types.contains_key(&OutputType::LlvmAssembly) {
return;
}