From 2ad7f3d6ac4292b3d211ea8b578efde010a93d5b Mon Sep 17 00:00:00 2001 From: d-sonuga Date: Tue, 13 Aug 2024 13:57:13 +0100 Subject: [PATCH] changed safepoint check --- src/fastalloc/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastalloc/mod.rs b/src/fastalloc/mod.rs index 60e19f89..12e347fd 100644 --- a/src/fastalloc/mod.rs +++ b/src/fastalloc/mod.rs @@ -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) {