From e221a28a46f0ae771affcdb9f1744ecdb5cf3f8c Mon Sep 17 00:00:00 2001 From: mlokr Date: Mon, 2 Sep 2024 02:45:03 +0200 Subject: [PATCH] small fix --- hblang/src/codegen.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hblang/src/codegen.rs b/hblang/src/codegen.rs index 583599a..8d7836e 100644 --- a/hblang/src/codegen.rs +++ b/hblang/src/codegen.rs @@ -1549,7 +1549,10 @@ impl Codegen { let len = self.output.code.len() as u32; for mut rel in self.ci.ret_relocs.drain(ret_reloc_base..) { rel.offset += self.ci.snap.code as u32; - rel.shifted = true; + #[cfg(debug_assertions)] + { + rel.shifted = true; + } rel.apply_jump(&mut self.output.code, len); }