forked from M-Labs/artiq
1
0
Fork 0

compiler: fix noreturn attribute on __artiq_resume

This commit is contained in:
Sebastien Bourdeauducq 2022-02-01 19:01:40 +08:00
parent dd3279e506
commit ef25640937
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ class LLVMIRGenerator:
if isinstance(llty, ll.FunctionType): if isinstance(llty, ll.FunctionType):
llglobal = ll.Function(self.llmodule, llty, name) 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") llglobal.attributes.add("noreturn")
if name in ("rtio_log", "rpc_send", "rpc_send_async", if name in ("rtio_log", "rpc_send", "rpc_send_async",
self.target.print_function): self.target.print_function):