Skip to content

Commit

Permalink
changed safepoint check
Browse files Browse the repository at this point in the history
  • Loading branch information
d-sonuga committed Aug 13, 2024
1 parent feb1067 commit 2ad7f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fastalloc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ impl<'a, F: Function> Env<'a, F> {

fn alloc_inst(&mut self, block: Block, inst: Inst) -> Result<(), RegAllocError> {
trace!("Allocating instruction {:?}", inst);
if self.func.requires_refs_on_stack(inst) {
if self.func.requires_refs_on_stack(inst) && !self.func.reftype_vregs().is_empty() {
panic!("Safepoint instructions aren't supported");
}
if self.func.is_branch(inst) {
Expand Down

0 comments on commit 2ad7f3d

Please sign in to comment.