소스 검색

fix wrong type in map debug info

Laytan Laats 1 년 전
부모
커밋
cfc85fd737
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/llvm_backend_debug.cpp

+ 1 - 1
src/llvm_backend_debug.cpp

@@ -945,7 +945,7 @@ gb_internal LLVMMetadataRef lb_debug_type(lbModule *m, Type *type) {
 		}
 
 		case Type_Map: {
-			bt = base_type(type->Map.debug_metadata_type);
+			bt = base_type(bt->Map.debug_metadata_type);
 			GB_ASSERT(bt->kind == Type_Struct);
 			return lb_debug_struct(m, type, bt, name, scope, file, line);
 		}