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 committed May 5, 2024
1 parent db890db commit d68c636
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 @@ -4744,8 +4744,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 d68c636

Please sign in to comment.