mirror of
https://github.com/m-labs/artiq.git
synced 2025-02-17 21:11:56 +08:00
compiler: fix noreturn attribute on __artiq_resume
This commit is contained in:
parent
dd3279e506
commit
ef25640937
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user