Skip to content

Commit 4c7c198

Browse files
committed
Fix.
1 parent bb9fb34 commit 4c7c198

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

monoasm/src/jit_memory.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,10 @@ impl JitMemory {
450450
for target in std::mem::take(&mut rel.target) {
451451
self.write_reloc(src_page, src_pos, target);
452452
}
453+
} else {
454+
if !rel.target.is_empty() {
455+
panic!("DestLabel has no position binding.");
456+
}
453457
}
454458
}
455459
self.labels = reloc;

0 commit comments

Comments
 (0)