This is an archive of the discontinued LLVM Phabricator instance.

Use the generic form when printing from the python bindings and the verifier fails
ClosedPublic

Authored by mehdi_amini on Dec 2 2020, 8:21 PM.

Details

Summary

This reduces the chances of segfault. While it is a good practice to ensure
robust custom printers, it is unfortunately common to have them crash on
invalid input.

Diff Detail

Event Timeline

mehdi_amini created this revision.Dec 2 2020, 8:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 2 2020, 8:21 PM
mehdi_amini requested review of this revision.Dec 2 2020, 8:21 PM
stellaraccident accepted this revision.Dec 2 2020, 11:43 PM

Thanks! Been meaning to add the verify hook for a while.

This revision is now accepted and ready to land.Dec 2 2020, 11:43 PM
This revision was landed with ongoing or failed builds.Dec 3 2020, 10:45 AM
This revision was automatically updated to reflect the committed changes.