#no_nil third time's the charm

This commit is contained in:
Laytan Laats
2025-01-08 21:24:22 +01:00
parent 7185a93a86
commit b3c359557e

View File

@@ -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;
}