This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Move the assertion to a valid place.
ClosedPublic

Authored by hanchung on Nov 2 2022, 6:10 PM.

Details

Summary

The defining Op may live in an unlinked block so its parent Op may be
null. Only assert it when the parent Op is not null.

Diff Detail

Event Timeline

hanchung created this revision.Nov 2 2022, 6:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2022, 6:10 PM
hanchung requested review of this revision.Nov 2 2022, 6:10 PM
mravishankar accepted this revision.Nov 4 2022, 11:42 AM
This revision is now accepted and ready to land.Nov 4 2022, 11:42 AM
This revision was automatically updated to reflect the committed changes.