Skip to content

Commit

Permalink
llvm: always include debug information for global variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pkova authored and andrewrk committed May 9, 2024
1 parent 6eb17a0 commit 4163126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codegen/llvm.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 4163126

Please sign in to comment.