Fix DW_FORM_strp parsing

Differential revision: https://reviews.llvm.org/D37441

llvm-svn: 312562
This commit is contained in:
Jan Kratochvil 2017-09-05 19:01:01 +00:00
parent 22cdb61a78
commit 75a79e72ae
1 changed files with 4 additions and 4 deletions

View File

@ -161,9 +161,9 @@ bool DWARFDebugInfoEntry::FastExtract(
case DW_FORM_strp:
case DW_FORM_sec_offset:
if (cu->IsDWARF64())
debug_info_data.GetU64(offset_ptr);
debug_info_data.GetU64(&offset);
else
debug_info_data.GetU32(offset_ptr);
debug_info_data.GetU32(&offset);
break;
default:
@ -325,9 +325,9 @@ bool DWARFDebugInfoEntry::Extract(SymbolFileDWARF *dwarf2Data,
case DW_FORM_strp:
case DW_FORM_sec_offset:
if (cu->IsDWARF64())
debug_info_data.GetU64(offset_ptr);
debug_info_data.GetU64(&offset);
else
debug_info_data.GetU32(offset_ptr);
debug_info_data.GetU32(&offset);
break;
default: