소스 검색

`#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];
 
 		ptrdiff_t variant_index = j;
-		if (bt->Union.kind == UnionType_no_nil) {
+		if (bt->Union.kind != UnionType_no_nil) {
 			variant_index += 1;
 		}