Return failure on failure in convertBlockSignature.
authorStella Laurenzo <stellaraccident@gmail.com>
Wed, 6 Oct 2021 20:54:13 +0000 (13:54 -0700)
committerStella Laurenzo <stellaraccident@gmail.com>
Wed, 6 Oct 2021 22:35:31 +0000 (15:35 -0700)
commit56272257f3f3696a718abeb73bee4c2cc0a14b01
tree94976fa4acd5a9b02c550798bebe5def7d4da154
parentae4c0c7cfc4859e39c964cafb1e1dd004cfcf1fd
Return failure on failure in convertBlockSignature.

This was causing a subsequent assert/crash when a type converter failed to convert a block argument.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D110985
mlir/lib/Transforms/Utils/DialectConversion.cpp
mlir/test/Transforms/test-legalize-type-conversion.mlir