From a78d2bc3e92e35ae163d69bcf5dee8b4aeb3fc18 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 583599a3..8d7836eb 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); }