Skip to content

Commit

Permalink
#no_nil third time's the charm
Browse files Browse the repository at this point in the history
  • Loading branch information
laytan committed Jan 8, 2025
1 parent 7185a93 commit b3c3595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llvm_backend_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ gb_internal LLVMMetadataRef lb_debug_union(lbModule *m, Type *type, String name,
Type *variant = bt->Union.variants[j];

ptrdiff_t variant_index = j;
if (bt->Union.kind == UnionType_no_nil) {
if (bt->Union.kind != UnionType_no_nil) {
variant_index += 1;
}

Expand Down

0 comments on commit b3c3595

Please sign in to comment.