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
Paths
| Differential D92981
[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 TimelineHerald added subscribers: teijeong, rdzhabarov, tatianashp and 12 others. · View Herald TranscriptDec 9 2020, 4:20 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 Closed by commit rG1f5f006d9d53: [mlir][StandardOps] Verify that the result of an integer constant is signless (authored by rriddle). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 310988 mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/test/Dialect/Standard/invalid.mlir
|