From c229e76d07db1754eec8a248b3dd02b2784ad1e5 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Wed, 20 Jan 2021 01:49:16 +0100 Subject: [PATCH] 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. --- artiq/compiler/transforms/llvm_ir_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/compiler/transforms/llvm_ir_generator.py b/artiq/compiler/transforms/llvm_ir_generator.py index ce2530bf4..7ba51cb08 100644 --- a/artiq/compiler/transforms/llvm_ir_generator.py +++ b/artiq/compiler/transforms/llvm_ir_generator.py @@ -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)