From 8fa5435430db7809ead2ef8e45b15a7aa080c4bb Mon Sep 17 00:00:00 2001 From: Russel Arbore <russel.jma@gmail.com> Date: Tue, 4 Mar 2025 19:13:45 -0600 Subject: [PATCH] fix --- hercules_cg/src/cpu.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hercules_cg/src/cpu.rs b/hercules_cg/src/cpu.rs index f7fd34db..e13a7c3f 100644 --- a/hercules_cg/src/cpu.rs +++ b/hercules_cg/src/cpu.rs @@ -68,7 +68,7 @@ impl<'a> CPUContext<'a> { if self.types[return_type.idx()].is_primitive() { write!( w, - "define dso_local {} @{}_{}(", + "define dso_local nounwind nosync willreturn norecurse {} @{}_{}(", self.get_type(return_type), self.module_name, self.function.name, @@ -96,7 +96,7 @@ impl<'a> CPUContext<'a> { )?; write!( w, - "define dso_local void @{}_{}(", + "define dso_local nounwind nosync willreturn norecurse void @{}_{}(", self.module_name, self.function.name, )?; } -- GitLab