This is an archive of the discontinued LLVM Phabricator instance.

[mlir][StandardOps] Verify that the result of an integer constant is signless
ClosedPublic

Authored by rriddle on Dec 9 2020, 4:20 PM.

Details

Summary

This was missed when supported for unsigned/signed integer types was first added, and results in crashes if a user tries to create/print a constant with the incorrect integer type.

Fixes PR#46222

Diff Detail

Event Timeline

rriddle created this revision.Dec 9 2020, 4:20 PM
rriddle requested review of this revision.Dec 9 2020, 4:20 PM
jpienaar accepted this revision.Dec 9 2020, 4:59 PM
This revision is now accepted and ready to land.Dec 9 2020, 4:59 PM
This revision was landed with ongoing or failed builds.Dec 10 2020, 12:41 PM
This revision was automatically updated to reflect the committed changes.