From ef25640937415fe1592c0cc523807743a29b7932 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 1 Feb 2022 19:01:40 +0800 Subject: [PATCH] compiler: fix noreturn attribute on __artiq_resume --- artiq/compiler/transforms/llvm_ir_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/llvm_ir_generator.py b/artiq/compiler/transforms/llvm_ir_generator.py index 60a5dc482..8017981d3 100644 --- a/artiq/compiler/transforms/llvm_ir_generator.py +++ b/artiq/compiler/transforms/llvm_ir_generator.py @@ -403,7 +403,7 @@ class LLVMIRGenerator: if isinstance(llty, ll.FunctionType): llglobal = ll.Function(self.llmodule, llty, name) - if name in ("__artiq_raise", "__artiq_reraise", "llvm.trap"): + if name in ("__artiq_raise", "__artiq_resume", "llvm.trap"): llglobal.attributes.add("noreturn") if name in ("rtio_log", "rpc_send", "rpc_send_async", self.target.print_function):