This is an archive of the discontinued LLVM Phabricator instance.

[mlir][LLVMIR] Fix oneToOneRewrite for zero-result ops
ClosedPublic

Authored by Mogball on Aug 25 2022, 1:37 PM.

Details

Summary

oneToOneRewrite segfaulted for zero result-ops because a null type was being
passed to the op builders.

Diff Detail

Event Timeline

Mogball created this revision.Aug 25 2022, 1:37 PM
Herald added a project: Restricted Project. · View Herald Transcript
Mogball requested review of this revision.Aug 25 2022, 1:37 PM
rriddle accepted this revision.Aug 25 2022, 1:39 PM

Was there any place upstream that could trigger this?

This revision is now accepted and ready to land.Aug 25 2022, 1:39 PM

Apparently not. It was only ever being used to convert ops with non-zero results.

This revision was automatically updated to reflect the committed changes.