浏览代码

`#no_nil` third time's the charm

Laytan Laats 8 月之前
父节点
当前提交
b3c359557e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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];
 		Type *variant = bt->Union.variants[j];
 
 
 		ptrdiff_t variant_index = j;
 		ptrdiff_t variant_index = j;
-		if (bt->Union.kind == UnionType_no_nil) {
+		if (bt->Union.kind != UnionType_no_nil) {
 			variant_index += 1;
 			variant_index += 1;
 		}
 		}