[mlir] Add assert to fail with more info (NFC)
authorJacques Pienaar <jpienaar@google.com>
Fri, 15 Apr 2022 02:54:12 +0000 (19:54 -0700)
committerJacques Pienaar <jpienaar@google.com>
Fri, 15 Apr 2022 02:54:12 +0000 (19:54 -0700)
commit35bd41916b10a9312ec33e90580497bc4c7f22fe
treee2636dbf14f848a610d8738917040d75f2315bca
parent1aa4f0bb6cc21b7666718f5534c88d03152ddfb1
[mlir] Add assert to fail with more info (NFC)

This would have assert before during tensor type construction with
opaque error, assert and fail earlier now.
mlir/lib/Interfaces/InferTypeOpInterface.cpp