Skip to content

Commit

Permalink
Fix bug with abbrev tag copy
Browse files Browse the repository at this point in the history
  • Loading branch information
rastogishubham committed Oct 10, 2022
1 parent 15c4943 commit 8c46740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/MC/MCCASObjectV1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ materializeCUDie(DWARFCompileUnit &DCU, MutableArrayRef<char> SectionContents,
DCU.getAddressByteSize());
uint64_t PrevOffset = CUOffset;
uint64_t AbbrevTag = DWARFExtractor.getULEB128(&CUOffset);
std::memcpy(&SectionContents[SectionOffset], &AbbrevTag,
std::memcpy(&SectionContents[SectionOffset], &CUData.data()[PrevOffset],
CUOffset - PrevOffset);
SectionOffset += CUOffset - PrevOffset;

Expand Down

0 comments on commit 8c46740

Please sign in to comment.