forked from M-Labs/artiq
compiler: fix send_message after stackrestore
This commit is contained in:
parent
502204cab2
commit
849b77fbf2
@ -1717,9 +1717,9 @@ class LLVMIRGenerator:
|
|||||||
llargcount = ll.Constant(lli8, len(args))
|
llargcount = ll.Constant(lli8, len(args))
|
||||||
|
|
||||||
llisreturn = ll.Constant(lli1, False)
|
llisreturn = ll.Constant(lli1, False)
|
||||||
self.llbuilder.call(self.llbuiltin("llvm.stackrestore"), [llstackptr])
|
self.llbuilder.call(self.llbuiltin("subkernel_send_message"),
|
||||||
return self.llbuilder.call(self.llbuiltin("subkernel_send_message"),
|
|
||||||
[llid, llisreturn, lldest, llargcount, lltagptr, llargs])
|
[llid, llisreturn, lldest, llargcount, lltagptr, llargs])
|
||||||
|
return self.llbuilder.call(self.llbuiltin("llvm.stackrestore"), [llstackptr])
|
||||||
|
|
||||||
def _build_subkernel_return(self, insn):
|
def _build_subkernel_return(self, insn):
|
||||||
# builds a remote return.
|
# builds a remote return.
|
||||||
|
Loading…
Reference in New Issue
Block a user