Skip to content

Commit 34b47b0

Browse files
nikomatsakisAlexander Regueiro
authored andcommitted
Added -Zno-verify-llvm-ir compiler option.
1 parent 6848248 commit 34b47b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc_session/session.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,9 @@ impl Session {
429429
self.opts.debugging_opts.asm_comments
430430
}
431431
pub fn verify_llvm_ir(&self) -> bool {
432-
self.opts.debugging_opts.verify_llvm_ir || cfg!(always_verify_llvm_ir)
432+
(self.opts.debugging_opts.verify_llvm_ir
433+
|| cfg!(always_verify_llvm_ir))
434+
&& !self.opts.debugging_opts.no_verify_llvm_ir
433435
}
434436
pub fn borrowck_stats(&self) -> bool {
435437
self.opts.debugging_opts.borrowck_stats

0 commit comments

Comments
 (0)