Skip to content

Commit

Permalink
fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreif committed Oct 9, 2020
1 parent bdaf450 commit 1263aaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserRust.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,10 +620,10 @@ DWARFASTParserRust::ParseFields(const DWARFDIE &die, std::vector<size_t> &discri
saw_discr = true;
discr_offset = new_field.byte_offset;

Type *type = die.ResolveTypeUID(DIERef(new_field.type));
Type *type = die.ResolveTypeUID(new_field.type.Reference());
if (type) {
lldb_private::CompilerType ctype = type->GetFullCompilerType();
discr_byte_size = m_ast.GetBitSize(ctype.GetOpaqueQualType(), nullptr) / 8;
discr_byte_size = *m_ast.GetBitSize(ctype.GetOpaqueQualType(), nullptr) / 8;
}
} else if (child_die.Tag() == DW_TAG_variant_part) {
// New-style enum representation -- nothing useful is in the
Expand Down

0 comments on commit 1263aaa

Please sign in to comment.