| author | |
| committer | |
| log | 94af47d28c83efa3dc26ee0b47b224b823c9b333 |
| tree | fa1cc35a793d91716709b4e1e4859c81c7015ba4 |
| parent | 181a89e728a89495c00b09b767f579c9591cb08c |
| signature |
Co-authored-by: Robin Voetter <robin@voetter.nl>2 files changed, 4 insertions(+), 1 deletions(-)
src/codegen/spirv.zig+2| ... | ... | @@ -1300,6 +1300,8 @@ const NavGen = struct { |
| 1300 | 1300 | .type = child_ty_id, |
| 1301 | 1301 | }); |
| 1302 | 1302 | |
| 1303 | self.ptr_types.getPtr(key).?.fwd_emitted = true; | |
| 1304 | ||
| 1303 | 1305 | return result_id; |
| 1304 | 1306 | } |
| 1305 | 1307 |
src/link/SpirV/prune_unused.zig+2-1| ... | ... | @@ -39,6 +39,7 @@ fn canPrune(op: Opcode) bool { |
| 39 | 39 | .Arithmetic, |
| 40 | 40 | .RelationalAndLogical, |
| 41 | 41 | .Bit, |
| 42 | .Annotation, | |
| 42 | 43 | => true, |
| 43 | 44 | else => switch (op) { |
| 44 | 45 | .OpFunction, |
| ... | ... | @@ -273,7 +274,7 @@ pub fn run(parser: *BinaryModule.Parser, binary: *BinaryModule, progress: std.Pr |
| 273 | 274 | .alive = try std.DynamicBitSetUnmanaged.initEmpty(a, info.result_id_to_code_offset.count()), |
| 274 | 275 | }; |
| 275 | 276 | |
| 276 | // Mark initial stuff as slive | |
| 277 | // Mark initial stuff as alive | |
| 277 | 278 | { |
| 278 | 279 | var it = binary.iterateInstructions(); |
| 279 | 280 | while (it.next()) |inst| { |