summaryrefslogtreecommitdiff
path: root/yjit
diff options
context:
space:
mode:
authorAlan Wu <alanwu@ruby-lang.org>2023-01-03 16:33:47 -0500
committerAlan Wu <alanwu@ruby-lang.org>2023-01-03 16:33:47 -0500
commitc240a1896812bbbcec64769aea90b50b64107622 (patch)
tree81faa19de90378fbc242982d6fa4b6b67ed5d6e0 /yjit
parent43ff0c2c488c80aaf83b486d45bcd4a92ebe3848 (diff)
YJIT: Dump spill error to stderr [ci skip]
Since the panic message is in stderr, better to use the same stream in case stdout and stderr are not synced due to IO redirection.
Diffstat (limited to 'yjit')
-rw-r--r--yjit/src/backend/ir.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/yjit/src/backend/ir.rs b/yjit/src/backend/ir.rs
index a2020b97eb..8e045963a9 100644
--- a/yjit/src/backend/ir.rs
+++ b/yjit/src/backend/ir.rs
@@ -973,11 +973,11 @@ impl Assembler
// Dump insns along with live registers
for (insn_idx, insn) in insns.iter().enumerate() {
- print!("{:3} ", if spill_index == insn_idx { "==>" } else { "" });
+ eprint!("{:3} ", if spill_index == insn_idx { "==>" } else { "" });
for reg in 0..=num_regs {
- print!("{:1}", if reg < live_regs[insn_idx] { "|" } else { "" });
+ eprint!("{:1}", if reg < live_regs[insn_idx] { "|" } else { "" });
}
- println!(" [{:3}] {:?}", insn_idx, insn);
+ eprintln!(" [{:3}] {:?}", insn_idx, insn);
}
}