Explorar o código

`#no_nil` third time's the charm

Laytan Laats hai 8 meses
pai
achega
b3c359557e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/llvm_backend_debug.cpp

+ 1 - 1
src/llvm_backend_debug.cpp

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