This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Remove unused MachineMemOperand::print wrappers (PR41772)
ClosedPublic

Authored by RKSimon on Sep 30 2019, 5:33 AM.

Details

Summary

As noted on PR41772, the static analyzer reports that the MachineMemOperand::print partial wrappers set a number of args to null pointers that were then dereferenced in the actual implementation.

It turns out that these wrappers are not being used at all (hence why we're not seeing any crashes), so I'd like to propose we just get rid of them.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Sep 30 2019, 5:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 30 2019, 5:33 AM
Herald added a subscriber: hiraditya. · View Herald Transcript

any comments?

spatel accepted this revision.Oct 2 2019, 7:58 AM

Removing dead code - LGTM.

This revision is now accepted and ready to land.Oct 2 2019, 7:58 AM
This revision was automatically updated to reflect the committed changes.