This is an archive of the discontinued LLVM Phabricator instance.

Fix bad assert in print-changed code
ClosedPublic

Authored by jamieschmeiser on Aug 12 2021, 12:00 PM.

Details

Summary

The assertion that both functions were not missing was incorrect and would
fail when one of the functions was missing. Fixed it and moved the
assertion earlier to check the input parameters to better capture
first-failure.

Diff Detail

Event Timeline

jamieschmeiser requested review of this revision.Aug 12 2021, 12:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 12 2021, 12:00 PM

do you have a test case that triggers this?

I'll come up with a lit test and attach it

Add a lit test that triggered the assertion.

This revision is now accepted and ready to land.Aug 12 2021, 2:39 PM

[NFC] Rename test to match PR name and move into directory so that it will only
be run on systems that have an appropriate diff.

[NFC] remove blank lines at EOF

This revision was landed with ongoing or failed builds.Aug 13 2021, 7:54 AM
This revision was automatically updated to reflect the committed changes.