This is an archive of the discontinued LLVM Phabricator instance.

[Verifier] Complain if a metadata attachment is null
AcceptedPublic

Authored by loladiro on Jan 13 2016, 5:23 PM.

Details

Reviewers
dexonsmith
Summary

The bitcode writer asserts if a metadata attachment to an instruction is null, but the Verifier didn't catch it before. Additionally, also make the IR writer more accepting when it encounters null metadata attachments, since it is used by the Verifier to print its errors.

Diff Detail

Repository
rL LLVM

Event Timeline

loladiro updated this revision to Diff 44818.Jan 13 2016, 5:23 PM
loladiro retitled this revision from to [Verifier] Complain if a metadata attachment is null.
loladiro updated this object.
loladiro added a reviewer: dexonsmith.
loladiro set the repository for this revision to rL LLVM.
loladiro added a subscriber: llvm-commits.
dexonsmith edited edge metadata.Jan 18 2016, 4:06 PM
dexonsmith added a subscriber: dexonsmith.

LGTM.

dexonsmith accepted this revision.Oct 6 2020, 3:46 PM

LGTM.

Not sure if this is still relevant, but I'm clicking "accept" to take this off my queue.

This revision is now accepted and ready to land.Oct 6 2020, 3:46 PM