[mlir][LLVMIR] Fix oneToOneRewrite for zero-result ops
authorJeff Niu <jeff@modular.com>
Thu, 25 Aug 2022 20:36:37 +0000 (13:36 -0700)
committerJeff Niu <jeff@modular.com>
Thu, 25 Aug 2022 21:08:58 +0000 (14:08 -0700)
commita2100daf12fb980a29fd1a9c85ccf8eaaaf79730
treef105d12773b13d23b7d5f0e9c021229e97ebb7ef
parentf4bcddc6a1b18bf50ba039cb4e0993a7e3596dde
[mlir][LLVMIR] Fix oneToOneRewrite for zero-result ops

`oneToOneRewrite` segfaulted for zero result-ops because a null type was being
passed to the op builders.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D132702
mlir/lib/Conversion/LLVMCommon/Pattern.cpp