mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
ZJIT: Only validate HIR in debug mode
This commit is contained in:
parent
31ff07ed1e
commit
ad12db4b3d
1 changed files with 1 additions and 0 deletions
|
@ -1288,6 +1288,7 @@ fn compile_iseq(iseq: IseqPtr) -> Option<Function> {
|
|||
if !get_option!(disable_hir_opt) {
|
||||
function.optimize();
|
||||
}
|
||||
#[cfg(debug_assertions)]
|
||||
if let Err(err) = function.validate() {
|
||||
debug!("ZJIT: compile_iseq: {err:?}");
|
||||
return None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue