From 5e1847e7c17c671cfcad730bc97bb6c70b328fe4 Mon Sep 17 00:00:00 2001 From: occheung Date: Mon, 10 Jan 2022 11:28:32 +0800 Subject: [PATCH] compiler: rename `variables` to `retainedNodes` Part of the changes that was made to LLVM 6 by the time that LLVM 7 was released. LLVM commit: https://github.com/llvm/llvm-project/commit/2c864551df3945f50e1780b2f2c880ec358ae715 LLVM differential review: https://reviews.llvm.org/D45024 --- artiq/compiler/transforms/llvm_ir_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/llvm_ir_generator.py b/artiq/compiler/transforms/llvm_ir_generator.py index 1bd6ad25f..521e0de14 100644 --- a/artiq/compiler/transforms/llvm_ir_generator.py +++ b/artiq/compiler/transforms/llvm_ir_generator.py @@ -115,7 +115,7 @@ class DebugInfoEmitter: "scopeLine": func.loc.line(), "isLocal": func.is_internal, "isDefinition": True, - "variables": self.emit_metadata([]) + "retainedNodes": self.emit_metadata([]) }, is_distinct=True) @memoize