This is an archive of the discontinued LLVM Phabricator instance.

Fix crash while printing MMO target flags
ClosedPublic

Authored by rampitec on Sep 14 2022, 3:46 PM.

Details

Summary

MachineMemOperand::print can dereference a NULL pointer if TII
is not passed from the printMemOperand. This does not happen while
dumping the DAG/MIR from llc but crashes the debugger if a dump()
method is called from gdb.

Diff Detail

Event Timeline

rampitec created this revision.Sep 14 2022, 3:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2022, 3:46 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
rampitec requested review of this revision.Sep 14 2022, 3:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2022, 3:46 PM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm accepted this revision.Sep 14 2022, 5:21 PM
This revision is now accepted and ready to land.Sep 14 2022, 5:21 PM
This revision was automatically updated to reflect the committed changes.