This is an archive of the discontinued LLVM Phabricator instance.

Fix crash in Spirv -lower-host-to-llvm pass
ClosedPublic

Authored by mehdi_amini on Jan 16 2023, 8:27 AM.

Details

Summary

When providing with a spirv module as input where no conversion happens
the code didn't defend against broken invariant.

We'll fail the pass here, but it's not clear if it is the right thing
or if the module should just be ignored.

Fixes #59971

Diff Detail

Event Timeline

mehdi_amini created this revision.Jan 16 2023, 8:27 AM
Herald added a project: Restricted Project. · View Herald Transcript
mehdi_amini requested review of this revision.Jan 16 2023, 8:27 AM
kuhar accepted this revision.Jan 16 2023, 10:34 AM

LGTM

This revision is now accepted and ready to land.Jan 16 2023, 10:34 AM
This revision was landed with ongoing or failed builds.Jan 16 2023, 1:07 PM
This revision was automatically updated to reflect the committed changes.

Nice, thanks Mehdi!