This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Dump raw data in a case of decoding error of an expression.
ClosedPublic

Authored by ikudrin on May 8 2020, 2:55 AM.

Details

Summary

It looks like that was an initial intention, but some code paths in DWARFExpression::Operation::extract() did not initialize EndOffset properly.

Diff Detail

Event Timeline

ikudrin created this revision.May 8 2020, 2:55 AM
aprantl accepted this revision.May 8 2020, 10:32 AM

Seems plausible

This revision is now accepted and ready to land.May 8 2020, 10:32 AM
MaskRay accepted this revision.May 8 2020, 10:58 AM
MaskRay added inline comments.
llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp
137

Delete EndOffset = Offset; I added in befbc99a7f092df5868b5ff0c6e46f41236cb1af

This revision was automatically updated to reflect the committed changes.