From 03afcf9e8b0f0a95f763dd4870cb563bc9ffb086 Mon Sep 17 00:00:00 2001 From: fye Date: Thu, 9 Jun 2022 17:19:32 -0700 Subject: [PATCH] debug: setup DIE of DW_TAG_union_type at setupDBGInfo --- src/mapleall/maple_be/src/cg/emit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mapleall/maple_be/src/cg/emit.cpp b/src/mapleall/maple_be/src/cg/emit.cpp index 37112f6cfb..bfddbabfe6 100644 --- a/src/mapleall/maple_be/src/cg/emit.cpp +++ b/src/mapleall/maple_be/src/cg/emit.cpp @@ -3491,6 +3491,7 @@ void Emitter::SetupDBGInfo(DebugInfo *mirdi) { die->SetAttr(DW_AT_frame_base, exprloc); } break; case DW_TAG_structure_type: + case DW_TAG_union_type: case DW_TAG_class_type: case DW_TAG_interface_type: { DBGDieAttr *byteSizeAttr = LFindDieAttr(die, DW_AT_byte_size); -- Gitee