This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo][test] Fix calculation of generated line table size
AbandonedPublic

Authored by jhenderson on Feb 3 2020, 8:55 AM.

Details

Summary

The change rG1271cde47456 incorrectly calculated the size of a line table's contents, when non-byte operands were used as arguments for extended or standard opcodes. This change fixes the calculation.

Diff Detail

Event Timeline

jhenderson created this revision.Feb 3 2020, 8:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2020, 8:55 AM

Perhaps worth a test case that exercises this new functionality/change in behavior?

Perhaps worth a test case that exercises this new functionality/change in behavior?

I've got one in the pipeline (it's how I found this bug). Will upload later today.

Perhaps worth a test case that exercises this new functionality/change in behavior?

I've got one in the pipeline (it's how I found this bug). Will upload later today.

One of the unit tests introduced in D73962 uses this functionality.

Perhaps worth a test case that exercises this new functionality/change in behavior?

I've got one in the pipeline (it's how I found this bug). Will upload later today.

One of the unit tests introduced in D73962 uses this functionality.

While small patches are generally good - changes in functionality should be exercised when added, so might be best to include this change in that one?

Okay, I'll go ahead and fold this into D73962.