diff options
-rw-r--r-- | src/dwarf2pdb.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dwarf2pdb.cpp b/src/dwarf2pdb.cpp index 5c403a4..cb078e3 100644 --- a/src/dwarf2pdb.cpp +++ b/src/dwarf2pdb.cpp @@ -1259,10 +1259,11 @@ int CV2PDB::addDWARFEnum(DWARF_InfoData& enumid, DWARF_CompilationUnit* cu, DIEC ? getTypeByDWARFPtr(cu, enumid.type)
: getDWARFBasicType(enumid.encoding, enumid.byte_size);
dtype = (codeview_type*)(userTypes + cbUserTypes);
- cbUserTypes += addEnum(dtype, count, firstFieldlistType, 0, basetype, enumid.name);
+ const char* name = (enumid.name ? enumid.name : "__noname");
+ cbUserTypes += addEnum(dtype, count, firstFieldlistType, 0, basetype, name);
int enumType = nextUserType++;
- addUdtSymbol(enumType, enumid.name);
+ addUdtSymbol(enumType, name);
return enumType;
}
|