This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Make DIELocList::SizeOf() more explicit. NFCI.
ClosedPublic

Authored by ikudrin on Jul 18 2020, 4:32 AM.

Details

Summary

DIELocList is used with a limited number of DWARF forms, see the only place where it is instantiated, DwarfCompileUnit::addLocationList().

The patch marks the unexpected execution path in DIELocList::SizeOf() as unreachable, to reduce ambiguity.

See also: D83958 and D84094.

Diff Detail

Event Timeline

ikudrin created this revision.Jul 18 2020, 4:32 AM
ikudrin edited the summary of this revision. (Show Details)Jul 18 2020, 4:45 AM
dblaikie accepted this revision.Jul 20 2020, 2:26 PM

Sounds good - thanks!

This revision is now accepted and ready to land.Jul 20 2020, 2:26 PM
This revision was automatically updated to reflect the committed changes.