diff options
Diffstat (limited to 'yjit/src')
-rw-r--r-- | yjit/src/codegen.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index 577031c86e..2ea64871b3 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -5095,7 +5095,11 @@ fn gen_send_cfunc( cme, recv, sp, - pc: Some(0), + pc: if cfg!(debug_assertions) { + Some(!0) // Poison value. Helps to fail fast. + } else { + None // Leave PC uninitialized as cfuncs shouldn't read it + }, iseq: None, local_size: 0, }); |