Browse Source

Fix typo that causes map info debug issues

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

+ 2 - 2
src/llvm_backend_debug.cpp

@@ -710,8 +710,8 @@ gb_internal void lb_debug_complete_types(lbModule *m) {
 
 			case Type_Map:
 				GB_ASSERT(t_raw_map != nullptr);
-				// bt = base_type(t->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: