Always remap results when replacing an operation. This prevents a crash when lowering...
authorRiver Riddle <riverriddle@google.com>
Wed, 5 Jun 2019 17:08:47 +0000 (10:08 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 9 Jun 2019 23:18:44 +0000 (16:18 -0700)
commit9fc00cf8402ea6b9866479e704db6ecd29e9f95b
tree154b95aa24cb191f82c07b23880b15e74dbe1b58
parent0d2492eb2edc321a056af293b9d11db5d12cf922
Always remap results when replacing an operation. This prevents a crash when lowering identity(passthrough) operations to the same resultant type as the original operation.

PiperOrigin-RevId: 251665492
mlir/lib/Transforms/DialectConversion.cpp