aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_debug.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-02-13 15:50:07 +0000
committergingerBill <bill@gingerbill.org>2024-02-13 15:50:07 +0000
commit5cd57a3a7f96e4966a7a17f99363893911fbad0d (patch)
tree4e7f981ecc1f5663c0cf35081dd8a0e1a97dad42 /src/llvm_backend_debug.cpp
parent563ce2bd818d654c9a3d8d6f29617bb8d086de0a (diff)
Use `Raw_Map` as the debug information for a `map`
Diffstat (limited to 'src/llvm_backend_debug.cpp')
-rw-r--r--src/llvm_backend_debug.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/llvm_backend_debug.cpp b/src/llvm_backend_debug.cpp
index 894c60729..6bcbac13f 100644
--- a/src/llvm_backend_debug.cpp
+++ b/src/llvm_backend_debug.cpp
@@ -710,7 +710,9 @@ 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->Map.debug_metadata_type);
+ bt = base_type(t_raw_map);
+ GB_ASSERT(bt->kind == Type_Struct);
/*fallthrough*/
case Type_Struct:
if (file == nullptr) {