[MLIR][NFC] Remove unnecessary cast.
authorantonio-cortes-perez <antonio.cortes.perez@gmail.com>
Mon, 4 Apr 2022 16:10:27 +0000 (09:10 -0700)
committerSergei Grechanik <sergei.grechanik@intel.com>
Mon, 4 Apr 2022 16:46:24 +0000 (09:46 -0700)
commitc2a8a104ec320c8bed39c3632eae2fb37f53487b
tree9c55d4128eb7242b3feac1cb4d71fd3110b2999e
parent368d35a89440c8e3e65020e0b4c04f0914d60008
[MLIR][NFC] Remove unnecessary cast.

I was reading this post:
https://www.fluentcpp.com/2017/05/19/crtp-helper/

And I noticed that most likely this cast is not needed.
Unless it is needed by some compiler versions.
I tested it with:
cmake --build . --target check-mlir

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D121555
mlir/include/mlir/IR/OpDefinition.h