mirror of https://github.com/m-labs/artiq.git
compiler: Add accidentally omitted note to invalid RPC type diagnostic
Might be a minor quality-of-life employment, but there isn't a test case for this anyway.
This commit is contained in:
parent
261870bdee
commit
c229e76d07
|
@ -1310,7 +1310,7 @@ class LLVMIRGenerator:
|
|||
diag = diagnostic.Diagnostic("error",
|
||||
"type {type} is not supported in remote procedure calls",
|
||||
{"type": printer.name(arg.type)},
|
||||
arg.loc)
|
||||
arg.loc, notes=[note])
|
||||
self.engine.process(diag)
|
||||
tag += ir.rpc_tag(arg.type, arg_error_handler)
|
||||
tag += b":"
|
||||
|
@ -1324,7 +1324,7 @@ class LLVMIRGenerator:
|
|||
diag = diagnostic.Diagnostic("error",
|
||||
"return type {type} is not supported in remote procedure calls",
|
||||
{"type": printer.name(fun_type.ret)},
|
||||
fun_loc)
|
||||
fun_loc, notes=[note])
|
||||
self.engine.process(diag)
|
||||
tag += ir.rpc_tag(fun_type.ret, ret_error_handler)
|
||||
|
||||
|
|
Loading…
Reference in New Issue