From 4163126c01c6439acd7a1f958d49b1ae4eeb9e68 Mon Sep 17 00:00:00 2001 From: Pyry Kovanen Date: Sun, 5 May 2024 17:08:59 +0300 Subject: [PATCH] llvm: always include debug information for global variables --- src/codegen/llvm.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index 84692e9a03a4..04a5af8bb0a2 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -4774,8 +4774,8 @@ pub const DeclGen = struct { debug_global_var, debug_expression, ); - if (!is_internal_linkage or decl.isExtern(zcu)) - variable_index.setGlobalVariableExpression(debug_global_var_expression, &o.builder); + + variable_index.setGlobalVariableExpression(debug_global_var_expression, &o.builder); try o.debug_globals.append(o.gpa, debug_global_var_expression); } }