forked from M-Labs/artiq
1
0
Fork 0

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:
David Nadlinger 2021-01-20 01:49:16 +01:00
parent 261870bdee
commit c229e76d07
1 changed files with 2 additions and 2 deletions

View File

@ -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)