This is an archive of the discontinued LLVM Phabricator instance.

[AsmWriter] Don't crash when printing addrspace and the operand is null
ClosedPublic

Authored by vporpo on Jan 9 2023, 7:05 PM.

Details

Summary

This helps print instructions with detached operands in the debugger.

Diff Detail

Event Timeline

vporpo created this revision.Jan 9 2023, 7:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 9 2023, 7:05 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
vporpo requested review of this revision.Jan 9 2023, 7:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 9 2023, 7:05 PM
aeubanks accepted this revision.Jan 10 2023, 10:53 AM

matches other error handling code in AsmWriter, lg

This revision is now accepted and ready to land.Jan 10 2023, 10:53 AM
arsenm added a subscriber: arsenm.Jan 10 2023, 10:57 AM
arsenm added inline comments.
llvm/lib/IR/AsmWriter.cpp
4019–4022

Drive by comment but this behavior is super annoying, it should just always print non-0 like everywhere else

This revision was landed with ongoing or failed builds.Jan 10 2023, 3:15 PM
This revision was automatically updated to reflect the committed changes.