Browse Source

Fix debug issue with `map`s

gingerBill 1 year ago
parent
commit
ff24cfe314
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/llvm_backend_debug.cpp

+ 2 - 2
src/llvm_backend_debug.cpp

@@ -746,8 +746,8 @@ gb_internal void lb_debug_complete_types(lbModule *m) {
 
 			case Type_Map:
 				GB_ASSERT(t_raw_map != nullptr);
-				bt = base_type(bt->Map.debug_metadata_type);
-				// bt = base_type(t_raw_map);
+				// bt = base_type(bt->Map.debug_metadata_type);
+				bt = base_type(t_raw_map);
 				GB_ASSERT(bt->kind == Type_Struct);
 				/*fallthrough*/
 			case Type_Struct: