aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_debug.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-30 10:29:20 +0000
committergingerBill <bill@gingerbill.org>2024-03-30 10:29:20 +0000
commit4edcaa6124eac5e73359ff98239be6f447a42f47 (patch)
tree929b30f38815cac50ac5c3c5168aabe412a709e0 /src/llvm_backend_debug.cpp
parentd84d65ba450efbd8d39469da868c973e355339f0 (diff)
Try storing a pointer to a fake metadata type in the debug info for a `map`
Diffstat (limited to 'src/llvm_backend_debug.cpp')
-rw-r--r--src/llvm_backend_debug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llvm_backend_debug.cpp b/src/llvm_backend_debug.cpp
index 9ecacb4f4..048f5f933 100644
--- a/src/llvm_backend_debug.cpp
+++ b/src/llvm_backend_debug.cpp
@@ -748,8 +748,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: