This is an archive of the discontinued LLVM Phabricator instance.

[llvm-locstats] Avoid the loc stats for the cases with no scope bytes coverage
ClosedPublic

Authored by djtodoro on Dec 12 2019, 5:48 AM.

Details

Summary

If the total number of PC range bytes in each variable's enclosing scope ('scope bytes total') is 0, we will have division by zero.

Diff Detail

Event Timeline

djtodoro created this revision.Dec 12 2019, 5:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 12 2019, 5:48 AM
vsk accepted this revision.Dec 12 2019, 11:17 AM
This revision is now accepted and ready to land.Dec 12 2019, 11:17 AM
This revision was automatically updated to reflect the committed changes.