| author | |
| committer | |
| log | 65576ea2ea8f0d1bcbd1b60dce115c25fc4647ad |
| tree | c64fc2a038165bfad060afc4bd61851f67115444 |
| parent | b34f994c0ba2d87fce2a3409d6bcfa7a5ebe78ff |
This was uncaught UB!1 files changed, 1 insertions(+), 0 deletions(-)
src/codegen/llvm.zig+1| ... | ... | @@ -662,6 +662,7 @@ pub const DeclGen = struct { |
| 662 | 662 | new_global.setAlignment(global.getAlignment()); |
| 663 | 663 | new_global.setInitializer(llvm_init); |
| 664 | 664 | global.replaceAllUsesWith(new_global); |
| 665 | dg.object.decl_map.putAssumeCapacity(decl, new_global); | |
| 665 | 666 | new_global.takeName(global); |
| 666 | 667 | global.deleteGlobal(); |
| 667 | 668 | } |